Ungefähr 153.000 Ergebnisse
Links auf neuer Registerkarte öffnen
  1. How can I switch to another branch in Git? - Stack Overflow

    4. Dez. 2017 · Switching to another branch in Git. Straightforward answer, git-checkout - Switch branches or restore working tree files git fetch origin # <---- This will fetch the branch git checkout …

  2. What's the difference between 'git switch' and 'git checkout' <branch ...

    30. Juli 2019 · What is the difference or use case? Two new commands "git switch" and "git restore" are introduced to split "checking out a branch to work on advancing its history" and "checking out paths …

  3. github - How do I switch a branch in Git? - Stack Overflow

    13. Juli 2021 · First, switching branch is done with git switch (since Git 2.23, Q3 2019), not git checkout (which tries to manage both files and branches, making it confusing) Second, git switch with-backend …

  4. Qual a diferença entre "git switch" e "git checkout"?

    12. Nov. 2021 · O git switch foi criado na versão 2.23.0 do Git (em 2019). As notas desta versão dizem o seguinte: Two new commands "git switch" and "git restore" are introduced to split "checking out a …

  5. How to switch (or checkout) to an existing remote branch in Git …

    14. Juni 2021 · 7 At first when I clone the Git repository I am in the master branch. But I have already created a remote develop branch. I run git fetch origin develop. Then, I use git checkout develop and it …

  6. git - How to return from 'detached HEAD' state? - Stack Overflow

    31. Okt. 2024 · If one would checkout a branch: git checkout 760ac7e from e.g. b9ac70b, how can one go back to the last known head b9ac70b without knowing its SHA1?

  7. How to create new local branch and switch between branches in Git

    31. März 2021 · You switch back and forth between branches using git checkout <branch name>. And yes, git checkout -b NEW_BRANCH_NAME is the correct way to create a new branch and switching to …

  8. git switch branch without discarding local changes

    You could use --merge / -m git checkout option: git checkout -m <another-branch> -m --merge When switching branches, if you have local modifications to one or more files that are different between the …

  9. git: switch branch without detaching head - Stack Overflow

    5. Mai 2014 · git push origin For convenience, you may use the same string for localname & branchname When you checked out origin/branchname you weren't really checking out a branch. …

  10. git - Switch on another branch (create if not exists), without checking ...

    I used git switch test 2>/dev/null || git switch -c test. If the branch exists, the left side of the || operator will switch to it. Otherwise, it will create the branch and switch. Running git checkout - will move back …