Skip to content

Beginner-friendly guide, essential commands, resources, playgrounds and best practices to help you learn git and make your first open-source contribution.

Notifications You must be signed in to change notification settings

Abbas-Asad/Git-and-Github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Git Basic Commands

  • git init // Initialize Git in the current folder (one-time command)
  • git add . // Add all files to the staging area
  • git commit -m "Update main.py" // Commit changes with a message
  • git remote add origin // Link GitHub repo to local repo (one-time command)
  • git remote -v // Verify the linked remote repo
  • git push origin main // Push local commits to GitHub

Git Additional Commands

  • git clone // Clone a GitHub repository
  • git status // Show the current status of repo
  • git log // Show commit history
  • git config --global user.name "Abbas Asad"
  • git config --global user.email "abbas07tech@gmail.com"

Useful Resources

About

Beginner-friendly guide, essential commands, resources, playgrounds and best practices to help you learn git and make your first open-source contribution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages