Resolving conflict in git

I notices that quite often, when I have conflicts, I simply want to choose. For example, when applying a stash I ran into this:

    label: Project Manager
    name: manager
<<<<<<< Updated upstream
    Permissions: [p_manager]
    Children: [g2, g3, g4, g5]
    Permissions: [p_manager, p2, p3, p4, p5, p_request]
>>>>>>> Stashed changes
    label: Junior PM (USA)
    name: junior-manager-usa
    Permissions: [p_junior, p_junior_usa, p_request]

I know exactly that I want to keep everything that is marked “Updated upstream” and drop \ ignore “Stashed changes”. Is it possible to just tell git to “Use upstream version of this file”?

  • Configuration with name 'default' not found when Importing from Git
  • Getting SHA hash of file in specific commit
  • Git pull from github only php files giving 500 internal server error
  • Multiple commits in pull requests
  • Uploading a empty folder to github
  • Git is Unusably Slow on Windows 10
  • git for two applications with one different file
  • How can I set up my own local Git server on my own computer?
  • How can I tell when a given commit went into a branch?
  • Git: Using a Makefile in untracked build directory
  • What's the easiest way to deal with project configuration files?
  • Cygwin git passing wrong path to my editor for commit messages
  • One Solution collect form web for “Resolving conflict in git”

    git checkout HEAD -- path/to/file
    Git Baby is a git and github fan, let's start git clone.