Professional Documents
Culture Documents
➔ Git initialization
cd <repo_name>
git status
➔ Create and edit one or more file which you want git to track:
nano <file_name>
➔ Create a new personal account in github at www.github.com if you do not have one using a
personal email id
➔ Create a personal access token by following steps mentioned in below article and save personal
access token generated at the last step as it is visible only once:
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-
secure/creating-a-personal-access-token
➔ Push the local repository to remote repo using user id and Personal Access Token generated and
saved earlier
➔ If you do not want to specify Personal Access Token every time a push happens, you can set
below variable and after this you will need to specify user id and token only once and it will be
stored for ever.
➔ If the local repo already exists and you need to only get the remote repo changes in your local
git rm -f <file_name>
➔ Provide details of file and folders in .gitignore which needs to be ignored by git
.gitignore
➔ Command to merge branch (Before running this connect to the branch you want to merge)