Skip to content

zeeshandev15/git--github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages