git使用持續更新

eclipse 中須要建立新的分支:git

1.在git上直接建立eclipse

2.在eclipse中在git repositiries 直接在想建立分支下,new一個新的分支,這種方法是先在本地建好分支,而後在推上去ide

切換分支:idea

直接在remote tracking中,checkout想要的分支-checkout as new branch便可在本地建立新的分支.net

刪除誤上傳的文件:blog

git rm  --cached  filenameip

git add .rem

git commit -m "zhushi"get

git pushit

對git進行操做有好幾種方式

1.命令上傳更新:

git branch
git status
git add .
git commit -m "zhushi"
git push
2.eclipse上操做:

merge的時候,在eclipse上更好操做

3.在git上能夠直接建立分支,兩個工程也能夠直接進行比較

4.sourcetree

對解決衝突,在sourcetree上能夠直接解決

相關問題詳見:

https://blog.csdn.net/u012491783/article/details/79391218

工程不要使用多個idea打開,會出現須要文件在上傳git時不是很好處理

相關文章
相關標籤/搜索