I'd do:
git clone <github repo>
git branch newbranch
git checkout newbranch
/bin/cp -r ~/newfilespath ~/git-repo/
git add .
git commit
FYI, when i was starting out with git, I often referenced this: https://services.github.com/on-demand/downloads/github-git-cheat-sheet .pdf
Oh, believe-you-me, If I didn't have to learn how to use it for my
job, I doubt I ever would have. I by no means consider myself a git expert, but I'm competent enough with it that I can branch, commit,
merge and create pull requests without having to look things up.
Up until a couple years ago I was still using CVS.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495941:23:59 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,984 |