2014/6/23

Git | +Gitlab Command Line

+Gitlab Command Line:

 
@-Switch Branch

git checkout [branch]

@-Create Branch

git branch [branch name] 

@-Modify Branch Name
git branch -m [branch new name]

@-Delete Remote Branch
git push origin :[branch name]

@-Check Status
git status

@-Commit Code -a (all)
git commit -a -m "message"

@-Moidfy Commit Messag
git commit --amend

@-Push Code To Branch
git push origin [Branch name] 

@-Update Code To Local
git pull

@-Show Commit Logs
git log

0 comments:

張貼留言