Skip to content

Git is a version control system that tracks changes in code. Developers use it to manage and collaborate on their code. GitHub is a cloud-based platform that hosts Git repositories. It is primarily used for code hosting, version control, collaboration, and project management.

Notifications You must be signed in to change notification settings

zeeshandev15/git--github

Repository files navigation

step 1: git installation to verify (git --version)

step 2: configure git with username and email

* git config --global user.name "Muhammad Zeeshan"
* git config --global user.email "fullstackdeveloper486@gmail.com"
* git config --list

step 3: how to create git repo (hidden repo) ?

* Answer git init

how to check the hidden file like ./git?

* Answer: ls -la

step 4: git status

  • Viewing Modified Files
  • Untracked Files

step 5: git add .

* Track all files

step 6: git commit -m "some message"

* describe changing

step 7: git log

* History of commits

step 8: create github repo

step 9: git remote add origin git@github.com:Hi-Dear-486/git--github.git

Answer: local repo link with remote repo

step 10: git remote -v

Answer: verify remote

step 9: git branch -M

Answer: renaming branch

step 10:git push -u origin main

Answer: local repo content ->remote repo

About

Git is a version control system that tracks changes in code. Developers use it to manage and collaborate on their code. GitHub is a cloud-based platform that hosts Git repositories. It is primarily used for code hosting, version control, collaboration, and project management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages