• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

how to take commits from another repository of another owner

Diarreamental

Well-Known Member
Joined
Jul 6, 2015
Messages
453
Solutions
1
Reaction score
80
Is it possible to take commit from different repositories of different owners?
I have a project in my desktop and I want to take commits from another repository of another owner?
Is this possible? If it's could you explain to me how to do it? Have been the whole day trying to get this to work.
i have git ,msvc, github desktop windows powershell installed

in this case i want to take commits from ralke23 github
Lua:
diap@DESKTOP-SKVF2VL MINGW64 ~/Documents/GitHub/tfs-pro (main)
$ git checkout ralke23/Greed-TFS-1.5-Downgrades
error: pathspec 'ralke23/Greed-TFS-1.5-Downgrades' did not match any file(s) known to git

diap@DESKTOP-SKVF2VL MINGW64 ~/Documents/GitHub/tfs-pro (main)
$ git fetch ralke23/Greed-TFS-1.5-Downgrades
fatal: 'ralke23/Greed-TFS-1.5-Downgrades' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

diap@DESKTOP-SKVF2VL MINGW64 ~/Documents/GitHub/tfs-pro (main)
 
Last edited:
Solution
If you want to "download" the repository, you can simple:

Bash:
git clone https://github.com/ralke23/Greed-TFS-1.5-Downgrades.git

After that you will have a local copy of the repository. After that you can checkout to another branch, make commits etc
If you want to "download" the repository, you can simple:

Bash:
git clone https://github.com/ralke23/Greed-TFS-1.5-Downgrades.git

After that you will have a local copy of the repository. After that you can checkout to another branch, make commits etc
 
Solution
Now i want to take commits from an public archived repo in this case from nekiro to got cherry pick them with latest TFS, any idea on how to do this?
 
cd projectdir
git remote add nekiro url.git
git fetch nekiro
git checkout branchname
git cherry-pick hash of commit
git push

something like that, im on phone
 
Last edited:
Back
Top