• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Programming v
1 2 3 4 Next »
Working with GitHub repository [updated: 04/02/2015]

 
  • 0 Vote(s) - 0 Average
Working with GitHub repository [updated: 04/02/2015]

micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#9
10-29-2015, 05:00 PM (This post was last modified: 12-14-2018, 07:16 AM by micheus.)
Copying commits from a branch to another

Let say we made some changes and committed them in the wrong branch and we want to move or just copy it to the current branch - we do that using cherry-pick command.

The first we need to find the commit ID which we can do by using the log command. A list of commits will be shown:
$ git log <source branch>
Quote:commit c61c5e42edbc31f49bf3dd373e564dd3742b0d79
Author: user <user@mail.com>
Date: Wed Oct 28 18:06:42 2015 -0200

Fixed .auv file parser for menu option control
...
We need to take note of the only first seven number: c61c5e4

Now, in the current branch, we run the follow command:
$ git cherry-pick c61c5e4
Quote:[mv/shaders f2af162] Fixed .auv file parser for menu option control
1 file changed, 10 insertions(+), 1 deletion(-)
Done!

Copying only a file from a commit to another branch
$ git checkout <commit> <folder or file path in the current branch>

Retoring a file from a branch
$ git checkout <branch> <file path in the current branch>
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Working with GitHub repository [updated: 04/02/2015] - by micheus - 06-07-2013, 08:33 PM
RE: Working with GitHub repository - by povmaniac - 06-07-2013, 08:50 PM
[Translating Wings3D] Working with GitHub [updated: 04/23/2016] - by micheus - 01-02-2014, 12:23 AM
RE: [Building Wings3D] Working with GitHub repository [updated 01/01/14] - by TulipVorlax - 01-02-2014, 02:14 AM
Re: Working with GitHub for Translations - by micheus - 01-02-2014, 04:41 PM
RE: [Building Wings3D] Working with GitHub repository [updated 01/01/14] - by TulipVorlax - 01-03-2014, 09:39 AM
RE: [Building Wings3D] Working with GitHub repository [updated 01/01/14] - by micheus - 01-03-2014, 04:02 PM
Updated: 06/15/2015 - by micheus - 06-15-2015, 09:02 PM
[updated: 10/29/2015] - by micheus - 10-29-2015, 05:00 PM
RE: Working with GitHub repository [updated: 04/02/2015] - by dgud - 10-29-2015, 07:07 PM
RE: Working with GitHub repository [updated: 04/02/2015] - by micheus - 10-29-2015, 07:14 PM
RE: Working with GitHub repository [updated: 04/02/2015] - by dgud - 10-30-2015, 01:41 PM
Using Dialyzer - by micheus - 04-17-2019, 01:37 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode