Git workflow for single user

前端 未结 3 945
梦毁少年i
梦毁少年i 2021-02-02 13:00

I am a single man shop developing a handful of desktop applications and websites. I started using GIT for version control a few months ago, and I am reasonably happy with it, bu

3条回答
  •  [愿得一人]
    2021-02-02 13:45

    I never pull anything from the Git repository

    clone / pull / push commands are for interacting with ohter repos (e.g. repos in other dir using git's file:// protocol)
    Maybe that's what you are missing here (e.g. import parts of your other git repos, begin new project based on another repo and so on)

    would it get overwritten by Git?

    Almost everything in git may be recovered. Just one condition: you should have been commited it before. So commit early, commit often, and it will be fine.

    and I am not quite sure what would happen if I created a branch (Where is the branch created? Same folder?)

    A branch is just a specific commit. So it is created where all your commits are.

提交回复
热议问题