Learning How to use git
Learning How to use git 1. Configuring credentials git config --global user.name "The name" //sets the default name git config --global user.email "The email" //sets the default email address 2. Creating a repositiory After starting the repository , you will be redirected to a page where further instructions are given. echo "*text*" >> README.md //creates a README text file git init // initializes repository By default 'master' is used for the name of the initial branch. The name will be changed later git status //shows which files are being tracked Using git status we can view what files are being tracked. git add // add files to be tracked Using the git add command i add the labsheets and README.md file to be tracked git commit -m "message" //creates a commit with the message git branch -M *name* // Renames initial branch to the name Using the command i rename the initial branch to main git remote add origin main //pushes l...