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