This command sets the author name and email address respectively to be used wwith your commits.
git config -global user.name "[name]" git config -global user.email "[email address]"
This command is used to start a new repository
This command is used to obtain a repository from an existing URL
git clone [url]
This command push the changes to the server
git push <remote name> <branch>
This command merge the specified branch into the current branch
git merge [branch name]
This command fetches and merges changes on the remote server to your working directory
This command adds a file to the staging area
git add or git add --all
This command records or snapshots the file permenantly in the version history
git commit -m "[commit message]"
This commit will create new branch only in your local system
git branch <branch-name>
This will switch you to the branch name you mentioned in the command
git checkout <branch-name>
This command lists all the files that have to be committed
This command used to connect your local repository to the server
git remote add [variable name] [server link]