简体   繁体   中英

Git workflow to fork a local repository?

What's the git equivalent of the following svn workflow:

  1. export foo

  2. import bar

Is it the following?

  1. checkout master

  2. tag foo

  3. branch bar

It's simply creating a new repository with git init and then "git pull" the right branch from the other repository. You end up with a new repository containing only the one branch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM