- Git Initialization – $ git init
- Git Clone – $ git clone <repository url>
- Git Clone From an branch – $ git clone -b <branch name> <repository url>
- For view branch – $ git branch , $git branch -a
- For checkout new branch – $ git checkout <branch name>
- for create and checkout new branch – $ git checkout -b <branch name>
- for file changes – $ git status
- Add file for commit – $ git add <file or folder name>
- Commit message – $ git commit -m “commit message”
- for pull code from repository – $ git pull <repository url or remote name like – origin / destination> <branch name>
- for push code from repository – $ git push <repository url or remote name like – origin / destination> <branch name>
Category: GIT
Remove remote and add new remote in git
- First Check Remote List Using Following –
$ git remote -v
(remote name like – origin) repository url (fetch)
(remote name like – origin) repository url (push)
2. Remove Remote
$ git remote rm (remote name like – origin)
3. then add new remote
$ git remote add origin repo url