GitHub Versioning Control - mdo91/Swe-573 GitHub Wiki
I. GitHub:
The following commands can be used through command line terminal, for managing a particular repository that it created on gitHub repository
git config: To set your user name and email in the main configuration file.
git init: To initialise a git repository for a new or existing project.
git clone: To copy a git repository from remote source, also sets the remote to original source so that you can pull again git status: To check the status of files you’ve changed in your working directory, i.e, what all has changed since your last commit.
git add: adds changes to stage/index in your working directory.
git commit: commits your changes and sets it to new commit object for your remote.
git push/git pull: Push or Pull your changes to remote. If you have added and committed your changes and you want to push them. Or if your remote has updated and you want those latest changes.
git branch: Lists out all the branches.
git checkout: Switch to different branches
git stash: Save changes that you don’t want to commit immediately.
git merge: Merge two branches you were working on.
git reset: You know when you commit changes that are not complete, this sets your index to the latest commit that you want to work on with.
git remote: To check what remote/source you have or add a new remote.