006-Git(1): Fetch->Commit->Push

1. Fetch.

Select the file you want to change the source code and right click -> Team -> Repository -> Fetch from Upstream;

2. Change source code

3. After you finish the code change, right click the file and select Team -> Commit

4. Select the file, right click -> Team -> Repository -> Push to Upstream


删除Git Repo上的目录及文件:

git rm -r 目录名

git commit -m “comments”

git push


如果id_rsa too open:

chmod 600 id_rsa

git clone git@github.rtp.raleigh.ibm.com:dingxg-cn/Programming-Skill-Build.git -b current

检出仓库:        $ git clone git://github.com/jQuery/jquery.git

查看远程仓库:$ git remote -v

添加远程仓库:$ git remote add [name] [url]

删除远程仓库:$ git remote rm [name]

修改远程仓库:$ git remote set-url --push [name] [newUrl]

拉取远程仓库:$ git pull [remoteName] [localBranchName]

推送远程仓库:$ git push [remoteName] [localBranchName]

posted @ 2017-03-09 11:33  XilingCai  阅读(209)  评论(0)    收藏  举报