-
Before starting anywork To make sure everything is in sync
git pull -
To push your work
git push
git push origin <branch> -
To commit your work
git add . git commit -m "message" git push --all -
To push the work to master
git push
git push origin <branch>
git push origin mayank:master -
To change the branch
git checkout <branch_name> -
To set the username of github
git config --global user.email "email@email.com" git config --global user.name "unname" -
To set the proxy
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
To unset the proxy
git config --global --unset http.proxy -
To handle the conflicts
git checkout --thiers .
git checkout --ours . -
To add user credentials
git config --global credential.https://github.com.username <your_username>
forked from may55/Git-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Chhavi-S/Git-Tutorials
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Git commands
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published