20,290
edits
Line 57: | Line 57: | ||
== 4) Add / Commit changes to a Local Machine == | == 4) Add / Commit changes to a Local Machine == | ||
You can propose changes (add it to the Index) using <br> | |||
<pre>git add <filename> | |||
</pre><pre>git add * </pre> | |||
This is the first step in the basic git workflow. To actually commit these changes use:<br> | |||
<pre>git commit -m "Commit message" | |||
</pre> | |||
Now the file is committed to the HEAD, but not in your remote repository yet.<br> | |||
'''Pushing Changes:'''<br> | |||
Your changes are now in the HEAD of your local working copy. To send those changes to your remote repository, execute | |||
<pre>git push origin master | |||
</pre> | |||
Change master to whatever branch you want to push your changes to.<br> |