美文网首页
Git Tips and Tricks

Git Tips and Tricks

作者: ELVENITO | 来源:发表于2019-09-29 21:26 被阅读0次

未经许可请勿转载。
Please do not reprint this article without permission.

Useful Docs

Common Usage

git status
git log
git init # create local repository
git remote add origin {remote-repository-url}.git # operations on remote repository
git pull # pull from remote repository
git add -A # git add /path/to/a/specific/file
git commit -m "Commit message."
git push -u origin master # push to the master branch of remote repository
git branch {new-branch-name} # create a new branch
git checkout {branch-name} # switch to another branch
git merge {another-branch} # merge another branch
git rm -r --cached {file-to-ignore} # untrack file to ignore

相关文章

网友评论

      本文标题:Git Tips and Tricks

      本文链接:https://www.haomeiwen.com/subject/gppqpctx.html