Install Git from this link:- https://git-scm.com/downloads
To check the Git version
git --version
To set the global Git username & email address
git config --global user.name "your name"
git config --global user.email "your email"
- Clone the repository using HTTPS or SSH (If you don't have 2FA enabled).
git clone https://github.com/TERNA-ENGINEERING-COLLEGE-NAVI-MUMBAI/open-source.git
or PAT, more about it in the STEP 8.
git clone https://<GitHubToken>@github.com/<username>/<RepositoryName>.git
- Create a new branch.
git branch YourBranchName
- Shift to that branch from
main
branch.
git checkout YourBranchName
Add FirstName_LastName_GradYear
in your HTML branch page under the appropriate division.
- Add all the changes you've made.
git add .
- Make a commit with a message of the changes you've done. Learn more about conventional commits here.
git commit -m 'your_message'
- Shift to the master branch.
git checkout main
- Merge everything from your branch to the master branch.
git merge YourBranchName
- Get ready to push from your local machine.
If you don't have 2FA enabled, then use the normal HTTPS or SSH link.
git remote add <message> https://github.com/TERNA-ENGINEERING-COLLEGE-NAVI-MUMBAI/open-source.git
Personal Access Token (PAT) is required if you enable 2FA on your Github account [link].
git remote add <message> https://<GitHubToken>@github.com/<username>/<RepositoryName>.git
- Push everything on your forked repository.
git push -u <message> main