imPGupta / learn_git

This repo shows how to start with Git and Github.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“Œ Start with Git and Github

This repo shows how to begin with Git and Github.
Git is a version control system that lets you manage and keep track of your source code history. It is designed to handle everything from small to very large projects with speed and efficiency.
GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.

πŸƒβ€β™‚οΈ Installing Git

  • First Install git for your OS. Available for Linux/Unix, Windows and Mac.

πŸ›  Configuring Git

  git config --global user.name "user_name"         (your Github account user_name) 
  git config --global user.email "email@mail.com"     (your Github account mailId)

πŸ“ Creating a new Repository

  • Create a folder in your system and then initializing it with git.
  • Open git bash or terminal and then move to that folder and type.
  git init 

  • Now your folder is initialized with git.
  • Create a simple file and save it inside that folder.

🏁 Checking status of your repo

  • Open git bash or terminal and then move to that folder and type.
 git status

βž• Add the files

 git add .

or

 git add -A

πŸ”— Commiting the files

 git commit -m "commit message"

πŸ’« Connecting it to your repo at Github

  git remote add origin https://github.com/imPGupta/learn_git

πŸ’₯ Uploading to Github

 git push origin master

Remove Error If Occurs

Β© Cloning a Git repo

 git clone https://github.com/imPGupta/learn_git

☁ Getting files from a Github repo

git pull origin master

About

This repo shows how to start with Git and Github.