Changes

Jump to navigation Jump to search
<div style="text-align: left; direction: ltr; margin-left: 5em;"><code><big>git commit -m "mandatory commit message"</big></code></div>
* to push your changes to remote repository use the <code><big>git push<optional file/folder name></big></code> command. Whatever you need to be pushed to the server must be committed to your local repository first. See example:By default this command will push everything from current folder if no item is specified.
* to add new files to your repository use the <code><big>git add</big></code> command. After that you must commit to ensure that your repository actually has the new file. See example:
<div style="text-align: left; direction: ltr; margin-left: 5em;"><code><big>git add <filename/folder name></big></code></div>
* to remove items from your repository use the <code><big>git remove</big></code> command. After that you delete the file that you wanted removed from the repository and commit to ensure that your repository actually has the change persisted. Finally, you push to server to make sure the server has those items removed as well and that nobody in your team works under the assumption that those items are stills there. See example:
<div style="text-align: left; direction: ltr; margin-left: 5em;"><code><big>git remove <filename></big></code></div>
<div style="text-align: left; direction: ltr; margin-left: 2em;">
Anonymous user

Navigation menu