Here are the few commands in git repository system that we can use.
To install git in ubuntu:
sudo apt-get install git
To get a clone from a repository:
git clone <repository url>
To add new file(s) created in local to the repository:
git add <file-name1> <file-name2>..
git commit -m “comments about the adding files”
To view the changed file:
<go_to_project_directory>
git status
To commit some changed files:
git commit -m “comments about the commit” <file-name1> <file-name2> <file-name3>….
Then push all the changes made so far into the repository after add and commit:
git push
Remember to pull the latest version from the repository into local before committing anything to avoid problems when merging:
git pull