Github-3 : Working with local repository




Working with local repository

  1. New Repository
  2. Repositary Name and description -> Add Repositary
  3. Their are two way to perform git operation A. Follow web instructions B. Cloneit locally
  4. Type ‘Git clone SSH(get it from git)’ so my command is ‘git clone https://github.com/divakar1592singh/my-first-repo.git'
  5. One folder created in your local location
  6.  Divakars-MacBook-Air:git divakar$ cd my-first-repo
  7. Divakars-MacBook-Air:my-first-repo divakar$ touch index.html main.js
  8. Type ‘git add -A’
  9. TYPE ‘git commit -m “my first repo” ‘
  10. Git push origin master - master is name of branch. Push command upload your data from local to git
  11. Git pull origin master - master is name of branch. Pull command retrieve your data from git to local
  12. Create readme.md fil



Comments

Popular posts from this blog

gitlab-1

Github-1 : Basic Setup

Github-2 : Setting Up Github