Import another commit to my repo

Sorry for newbie question but is there a way to import someone else commit (to his own repo) to my repo? it’s gonna be a hard thing to change 900+ files manually

  • How can I commit/push a git alias (in .git/config)?
  • Restore earlier state, keep untracked files
  • How to install a pod from a specific branch?
  • Git subtree - subtree up-to-date but can't push
  • Locate file in git repo
  • Git submodules confusion
  • git show-branch and trying to fix / figure out what is going on
  • Unable to push changes to remote branch in git
  • Is this how you normally would use SVN or GIt?
  • refname is ambiguous and pull failing
  • Git ignoring my .gitignore on a Rails project
  • Authentication in gitpython
  • 2 Solutions collect form web for “Import another commit to my repo”

    Make a patch file with git format-patch and then apply it to your repo with git apply patchfile

    You need to add the other’s repo as a remote repo of yours, and fetch its changes:

    git remote add matefork <github-url>
    git fetch matefork

    Then git knows about the commit, just cherry-pick it with its SHA

    git cherry-pick <SHA1>
    Git Baby is a git and github fan, let's start git clone.