Q:

Re-enabling GIT control in copied project, in a new branch

A friend sent me a zip file with an XCode workspace.
I opened the project and changed a lot of files.
Now, my friend says to me "Please, commit your changes in my BeanStalk repo in a new branch."
How can I do this?
I suppose to need a checkout and commit, like this:
git checkout -b <new-branch>
git commit

A:

First, tell your friend not to go sending out zip files if they expect people to be branching their repo.
Then you need to clone their repository, it will be something like:
git clone https://accountname.git.beanstalkapp.com/gitreponame.git 
cd gitreponame

Then create a branch:
git checkout -b <branch_name>

If you want to commit everything as one giant change (not ideal but maybe all you want in this case), copy all of your changes in to the repo. Then add and commit them:
git commit -am"<commit message>"

Then push them back up to your friend's repo:
git push -u origin <branch name>

But really, you're going to want to start reading up on git if you're going to be contributing. There are a lot of ways to go wrong if you don't know what you're doing. There are a lot of tutorials online.

