A simple app using ListView to display a list of names.
You can refer to the following articles on the basics of Git and GitHub, in case you are stuck:
You can get your own fork/copy of Names-Inventory by using the Fork button.
You need to clone (download) it to local machine using
$ git clone https://github.com/Your_Username/Names-Inventory.git
This makes a local copy of repository in your machine.
Run the following commands to see that your local copy has a reference to your forked remote repository in GitHub
$ git remote -v
origin https://github.com/Your_Username/Names-Inventory.git (fetch)
origin https://github.com/Your_Username/Names-Inventory.git (push)
Now, lets add a reference to the original Names-Inventory repository using
$ git remote add upstream https://github.com/kiruba-r11/Names-Inventory.git
This adds a new remote named upstream.
See the changes using
$ git remote -v
origin https://github.com/Your_Username/Names-Inventory.git (fetch)
origin https://github.com/Your_Username/Names-Inventory.git (push)
upstream https://github.com/kiruba-r11/Names-Inventory.git (fetch)
upstream https://github.com/kiruba-r11/Names-Inventory.git (push)
Always keep your local copy of repository updated with the original repository. Before making any changes and/or in an appropriate interval, run the following commands carefully to update your local repository.
# Fetch all remote repositories and delete any deleted remote branches
$ git fetch --all --prune
# Switch to `main` branch
$ git checkout main
# Reset local `main` branch to match `upstream` repository's `main` branch
$ git reset --hard upstream/main
# Push changes to your forked `Names-Inventory` repo
$ git push origin main
Once you have completed these steps, you are ready to start contributing.
Whenever you are going to make contribution. Please create seperate branch using command and keep your main
branch clean (i.e. synced with remote branch).
# It will create a new branch with name Branch_Name and switch to that branch
$ git checkout -b Branch_Name
This will switch to the Branch_Name branch
To add the changes to the branch. Use
# To add all files to branch Branch_Name
$ git add .
Type in a message relevant for the code reveiwer using
# This message get associated with all files you have changed
$ git commit -m 'relevant message'
Now, Push your awesome work (create a new text file with your full name) to your remote repository using
# To push your work to your remote repository
$ git push -u origin Branch_Name
Then, go to your repository in browser and click on compare and pull requests
.
Then add a title and description to your pull request.