1.Created a new GitHub repository named "PLPBasicGitAssignment". 2. Initialized the repository with a README file. 3. Created a local folder named "PLPBasicGitAssignment". 4. Opened terminal and went to the local disk D.
cd /d/PLPBasicGitAssignment
-
Initialized a new Git repository. git init
-
Linked the local repository to the GitHub repository.
git remote add origin https://github.com/lendria/PLPBasicGitAssignment.git
-
Created a new file named
hello.txtwith the content "Hello, Git!". -
Staged the file.
git add hello.txt
-
Committed the changes with a message.
git commit -m "Add hello.txt with a greeting"
-
Pushed the changes to GitHub. git push -u origin main