User Controls

git wtf

  1. #1
    Merlin Houston
    For some reason my master branch and side branch are linked together, what's going on?

    Working on something in master decide to put it on it's own branch:

    git checkout -b new_branch


    Switch between them and git diff and see both show the same modifications
    That's weird... lets do a git stash to revert master back to clean state

    git checkout master
    git stash save


    Switch back to new branch and all the changes are gone. Ok, apply the stash to the new branch to get changes back

    git stash apply


    Looks good, but wait the changes are back on master.
  2. #2
    Sophie Pedophile Tech Support
    Yeah i don't even fucking know. Git is fucked like that sometimes. So basically i decided to just add files through upload, or just push a commit to a repo with only one branch lel.
Jump to Top