Changes

Jump to navigation Jump to search
1,010 bytes added ,  18:10, 6 May 2016
* to checkout code from remote repository, use the <code><big>git clone</big></code> command. This will create a local repository on your disk as well as download the source code of the project you wish to work on. Here's an example:
<div style="text-align: left; direction: ltr; margin-left: 5em;"><code><big>git clone http://128.42.44.182/codebase/Matcher.git</big></code></div>
 
* to update your repository to include others' work in your project use the <code><big>git update</big></code> command. Its always a good practice to update your code before you commit to ensure that others' code doesn't break yours. Also, you cannot push to remote unless your local repository is up to date. If you commit on a stale local repository that is fine, just that this would mean you are likely to have more trouble merging your code with others later on thanks to all the conflicts that you'll face when you actually try to update your repository later. See example:
<div style="text-align: left; direction: ltr; margin-left: 5em;"><code><big>git update <optional folder path></big></code></div>
* to commit your changes to your local repository use the <code><big>git commit</big></code> command. Committing your changes is an essential step whether you are adding/removing items from the repository or changing existing items. See example :
* to push your changes to remote repository use the <code><big>git push</big></code> command. Whatever you need to be pushed to the server must be committed to your local repository first. See example:
 
* 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></big></code></div>
* 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:
Anonymous user

Navigation menu