Ubuntu Linux Git Basic

git clone git-URL

clone the remote git repository


git push

put local branches commit to remote repository


git pull

if the working copy tracked remote repository, the operate will sync with it and merge modify


git status

get the status of repository


git commit -m

commit the staged changes to repository. -m "message"


git add .

add the untracked files ,dirs to tracked. Add the changes to staged status to commit next.


git fetch

fetch the data which not exist in local


git log

get the log message. -n will display n terms.


git config user.email "[email protected]"

git config user.name "name"

configure the current repository options


git remote

list remote branches


.gitignore

add the mask pattern to the file


if local file had changed, you want push, so the procedure

git add

git commit

git pull


git checkout branches

change to another branch


ssh git info

display all the project which you have


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章