"Git common action"

Git common operations:

git checkout -b local branch # Create a local branch - the local branch, and switch to the next branch. 
git branch --set-upstream-to = origin / remote branch local branch # Origin / remote leg on the associated local branch. 
pull git # local branch with origin / remote branch merge. 
Status git # view the status of the current work area and a staging area in the file. 
the Add file_name git # Adding file file_name to the staging area. 
git commit -m Comment # will be credited to modify the contents of the staging area committed to the local branch, the comment is a description of the content submitted. 
Push Git # the current local branch pushed to the origin / remote branch corresponding

 

Guess you like

Origin www.cnblogs.com/luckylele/p/11934667.html