Install Git from this link:- https://git-scm.com/downloads
To check the Git version
git --versionTo 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.gitor 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
mainbranch.
git checkout YourBranchNameAdd 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.gitPersonal 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