About 75,400 results
Open links in new tab
  1. git checkout - How can I check out a remote Git branch? - Stack Overflow

    Nov 23, 2009 · Maybe useful to someone else: When I used the Atom editor UI to fetch and pull changes, it pulled changes on the "main" branch but did not create a local reference to the second …

  2. What does git checkout do? - Stack Overflow

    Nov 3, 2021 · The git checkout command is very complicated. It's so complicated that someone finally, as of Git 2.23, split it into two separate commands: git switch, which does the "select other branch or …

  3. What is the difference between "git branch" and "git checkout -b"?

    38 git branch: Shows all your branches git branch newbranch: Creates a new branch git checkout -b newbranch: Creates a new branch and switches to that branch immediately. This is the same as git …

  4. What do git checkouts really mean? - Stack Overflow

    Mar 8, 2013 · What are checkouts in git? I know once you do checkout to a particular branch, the HEAD points to that branch. But what does it really mean? Does it mean I can then work on that branch? If …

  5. git - branch and checkout using a single command - Stack Overflow

    Jul 30, 2013 · $ git branch new_branch_name $ git checkout new_branch_name I tend to forget the latter, which can be annoying. Is there a way to do this using a single command? Perhaps using an …

  6. What's the difference between 'git switch' and 'git checkout' <branch>?

    Jul 30, 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 …

  7. git - Go to a particular revision - Stack Overflow

    Dec 4, 2024 · Before executing this command, keep in mind that it will leave you in a detached head state. Use git checkout <sha1> to check out a particular commit. Where <sha1> is the commit unique …

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

    Mar 31, 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 …

  9. What is git tag, How to create tags & How to checkout git remote tag …

    Mar 14, 2016 · How to create tags? There are 2 ways to create a tag: # lightweight tag $ git tag v1.0 # annotated tag $ git tag -a v1.0 The difference between the 2 is that when creating an annotated tag …

  10. git - Difference between "checkout" and "checkout -b" when remote ...

    Oct 9, 2018 · There is a plenty of difference between those two commands. when you use git checkout myRemoteBrench It only switch your branch if the branch is already existing. But when you use git …