Changes

Jump to navigation Jump to search
* Check your installation by typing <code><big>git</big></code> in terminal or windows powershell
*Basic git operations:
*<div style="text-align: left; direction: ltr; margin-left: 2em;">* 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 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 :
<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</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>
 
</div>
Anonymous user

Navigation menu