GIT知识点

http://www.jianshu.com/p/d265f7763a3a git中fetch和pull的区别git

  1. 本地分支重命名ide

    来源于: http://blog.csdn.net/yy20071313/article/details/49930493 fetch

    1. 本地分支重命名gradle

    Git branch -m oldbranchname newbranchnameidea

    2. 远程分支重命名 (假设本地分支和远程对应分支名称相同)spa

    a. 重命名远程分支对应的本地分支.net

    git branch -m old-local-branch-name new-local-branch-nameblog

    b. 删除远程分支ci

    git push origin  :old-local-branch-nameget

    c. 上传新命名的本地分支

    git push origin  new-local-branch-name: new-local-branch-name

  2. Git Merge Failed: You have not concluded your merge (MERGE_HEAD exists)

    commit&push,不要用merge

  3. 待续

gitignore的编写

/bin/

/target/

/test/

*.jar

/.project

/*.classpath

/.settings

/target/

/Servers/

/bin/

/out/

/RemoteSystemsTempFiles/

/.metadata/

/.git/

/.recommenders/

.project

/.settings/

/.gradle/

.settings

.classpath

/.idea/

*.iml

target/

相关文章
相关标签/搜索