| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Table of contents
git config --global user.name "Nickname"
git config --global user.email example@exemplo.brgit config --global credential.helper storeNote: When you clone a repository, and run the push command, you will be prompted for credentials only once.
Note: As for Github, you must first generate an Access Token, currently at: Settings > Developer settings > Personal access tokens.
# Help command...
git help <verb>
git help config
# Status...
git status
git log
git log --oneline --decorate
# Get branch list
git branch git add .
git commit -m "Updates"
git pushCreate new branch:
git branch name_of_branchSwitching Branches:
git checkout name_of_branchCreate a new branch and switch:
git checkout -b name_of_branchSend local branch to remote:
git add .
git commit -m "Updates"
git push --set-upstream origin name_of_branchRename branch:
git branch --move name_of_old_branch name_of_new_branch
git push --set-upstream origin name_of_new_branchDelete branch:
git push origin --delete name_of_branchgit pull
# or...
git pull origin name_of_branchChange to branch and apply the merge:
git checkout master
git merge name_of_branch<<<<<<< HEAD:index.html <div id="footer">contact : email.support@github.com</div> ======= <div id="footer"> please contact us at support@github.com </div> >>>>>>> iss53:index.html
Change the part to one of the merge and then commit the changes:
<div id="footer"> please contact us at support@github.com </div>
Send modifications:
git add . ; git commit -m "Updates"; git pushSteps:
| Back | FazBrowse Home | New Git URL |