cd
into where we want the repo to gogit clone (url)
to clone. Make sure to get the link from the green <> Code
Buttongit status
git pull origin main
git add .
git commit -m "Why I Made the Changes"
git push origin master
Version Control is a system that allows the user to see all changes made to a file or set of files. Additionally, a user can choose to revert back to the previous or older version of a project.
cloning
in Git?Cloning a repository is another way of saying creating a copy. Not only are the files copied, but all the versions of the project as well.
Github is a place to share code with others and a place to store code. GitHub uses Git to help manage teamwork.
A Collection of files that we have told GIT to keep track of. Usually one project is just one repo. Really Large projects might have multiple repositories for different parts ie front end vs back end. Repos can live on GitHub and/or the local computer
Commits are the GIT equivalent of a Save As...
. Each commit represent a successive version of the project.
If we are only wanting to track one file, the command we would use is git add filename
.
To track ALL files, use command git add .
One we are done tracking and staging files, you must commit the file and/or changes made and the push.
Commiting a file and add message can be done using the following code
git commit -m "commit comment goes here".
To commit all changes made, enter the following codegit push origin master
git remote -v
- see the URL of the GitHub repo
git status
- current status of our files