I am new to Git and have done some rudimentary tutorials on how to clone, add, commit stuff.
I recently git cloned an online repository on my local DEV environment with something like:
git clone git@something.beanstalkapp.com:/somefile.git
In order to make changes to the code and then be able to stage and commit those changes, what do I first? Do I need to add the local repository?
Can someone show me a small example: like git add “blah blah”. git commit -m “this is my first commit to remote repository” etc etc
Sorry I know I am not doing a good job explaining.
After you cloned, you probably have a folder
somefilecreated at the pwd. cd into that.Here you can add files and do commit, for example:
After this, you can push the changes back to the repo that you cloned from:
Please also lookup some git tutorials on getting started – http://schacon.github.com/git/gittutorial.html