Git Tutorial Assignment
Git Tutorial Assignment
COURSE: CSDFE2
TUTORIAL
2. Installation
Download and Install Git
Operating in a Linux operating system, Git is thus pre-installed with it.
Verifying Installation
Essential Configuration
a) git config --global init.defaultBranch main
Verify Configuration
i) git config --global user.name
● Save: Ctrl + O
● Exit: Ctrl + X
● Ctrl + O, Enter
● Ctrl + X
python newfile.py
Activity 2: Complete Git Workflow
1. Check and add file.
git status
2. Commit:
python newfile.py
git diff
git log
6. GitHub Integration
Create GitHub Account and Repository
●
●
Clone a Repo
git clone url
8. Advanced Features
Other commands
1. git pull
3. .gitignore File
a. git status
b. Create a .gitignore file
d. git status
e. Commit
9. Conclusion
This lab introduced the core functionality of Git and GitHub, including: