Check out the version installed by using git --version
command, the output must be similar to this 2.31.1
- Configure it so that the generated commit messages will contain your correct information.
- Use
git config --global user.name "Your Name"
andgit config --global user.email "[email protected]"
and replace with your name and email. - To check details that you have entered use
git config --list
.
- Now create a new repo GUI and clone it using the command
git clone repo-address
and replace the address ie. copied from the GUI. - Now go to the directory that has been created by cloning, use
cd repo-name
.
- Create any file in this directory and add some contents to it. Check the status of the directory by using
git status
. - Stage the files using
git add .
here '.' indicates all files, but if you want a single file to be commited you can usegit add filename
. - Commit the staged files using
git commit -m 'add discription to the commit'
.
- Once commited, push changes to remote repo using
git push
- Now that you have pushed you will be prompted to enter you GitHub username and password.
- Go to the GUI and you will find your changes.
Fork the repo to which you want to make a PR by clicking on this symbol on the top right corner of the repo.
- Your task is to add
[your-name].txt
file to thecollab
folder and then make a PR.
4. After that you will be redirected to this page now again cilck on the create pull request
button on this page.
- This repo displays minimal use of git and if you want to explore more then you can refer online resources. We have uploded a few of them you can check them out as well.
- Star the repo if you liked our session and for any furthur queries you can ask in the github discussion section.(avoid using teams and whatsapp)
- Try to Know more about Hacktoberfest here!