TIP: Click on subject to list as thread! ANSI
echo: linux
to: RICK CHRISTIAN
from: MIKE MILLER
date: 2017-04-13 23:58:00
subject: Git Gurus? Importing Code

   Hello Rick!

11 Apr 17 11:40, you wrote to all:


 RC>    Hello everybody!

 RC> I posted this in the LINUX-UBUNTU echo as I use a flavor of it, but it
 RC> seems to be a ghost town??? No one home????

 RC> Anyway...

 RC> Basically I took over from abandonment a project which had code at one
 RC> time on Github.... OK.. so I forked it... I've got my own repo of
 RC> it... I cloned to the box that will do the updates... The glitch
 RC> is....

 RC> Later versions including the last one were not published on the source
 RC> Github.. the GitHub one is several years out of date.

 RC> I have the raw files in a similar structure as they are on Github in
 RC> another directory.... What I am looking to find is a way to take that
 RC> updated version and turn it into the new branch I created to merge
 RC> back into the master branch on MY Github...

 RC> This just raw files, NOT svn, or mercurial etc...

 RC> Or do I have to

 RC> git checkout -b newfangeldbranch

 RC> And then open each file in an editor and cut n paste the new ones
 RC> in??? Really???

 RC> Git ain't my thing.. I am old school I have my own very outdated and
 RC> manual way of doing this for stuff I do... others will be involved...
 RC> so I need to use something they can handle.

 RC> I am sure there is some automated way I can do this...

 RC> cp -r ~/lastsource ~/myproject  ???????



  I'd do:

  git clone 
  git branch newbranch
  git checkout newbranch
  /bin/cp -r ~/newfilespath ~/git-repo/
  git add .
  git commit


  At this point an editor should open and you can make your commit comments. 
save it.  make sure you enter SOMETHING, or it won't actualy commit.


  You can also see differences if you do a "git diff" before the "git add". It
should show you the changes between the old files and the new.


  after all is said and done, a "git push origin newbranch"  will send the
files up to your git repo on github, assuming you have the proper
keys/passwords set up.

  FYI, when i was starting out with git, I often referenced this:
https://services.github.com/on-demand/downloads/github-git-cheat-sheet.pdf





Mike


... Still sliding down the razor blade of life
--- GoldED+/LNX 1.1.5-b20161221
* Origin: War Ensemble - warensemble.com - Appleton, WI (1:154/30)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.