visual studio 2013 - Duplicate and rename project from Git repository -


i'm working on project in large repository , it's been decided has reached point i'm going split it, , keep 1 project in it's current state , continue modifying functionality in other.

what did:

  • copied project folder.
  • pasted within same git parent folder on pc
  • renamed solution + project

i'm relatively new git may non-issue, new renamed project still has red ticks made changes. it's still associated git. more entire project red tick , add repository extra. (git repo contain 2 project (unmodified , modified).

the reference concerns me makes me wonder if when push changes git project somehow still related somehow , i'll lose original when make modifications clone.

if makes sense.....is there way of disassociating solution git repo , readding if whole thing new, external project? kind of if mate gave me random solution , wanted add repo...

thanks in advance jk

the common approach using branches. in git branches not different folders within project (unlike svn) rather snapshots of state of repository.

i´m going list console commands achieve since easier explain going on. visual studio instructions.

you can split off legacy branch, can maintained separately master branch.

git branch legacy  

this creates separate branch current commit (you can name whatever want). can visit branch by:

git checkout legacy 

or shorthand git checkout -b legacy create , switch branch. can use merges example apply fixes master branch legacy branch.

i recommend free pro git book , using git command line first gives proper understanding of how tool works rather buttons push.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -