What git gotchas have you been caught by?

后端 未结 9 2107
半阙折子戏
半阙折子戏 2020-12-25 08:51

The worst one I\'ve been caught by was with git submodules. I had a submodule for a project on github. The project was unmaintained, and I wanted to submit patches, but co

9条回答
  •  孤独总比滥情好
    2020-12-25 09:28

    Publishing to public repository without realizing my git config user.name was incorrect.
    That means the public repo now gets a name (and an email) I would rather not have published at all. If that repo is replicated, ... it is too late.

    That is why I prefer having my user.name displayed in my git prompt shell, meaning instead of having this:

     MY_HOSTNAME /c/Prog/myGitProject (master)$
    

    I see this:

     MY_HOSTNAME /c/Prog/myGitProject (master) VonC $
    

    I know who I am from the very first command I type in this Git bash session!

提交回复
热议问题