“Git Basic Commandmes” Ответ

Git Basic Commandmes

git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:xyz/reponame.git
git push -u origin main
Zany Zebra

Git Basic Commandmes

git status
Perfect Panda

Git Basic Commandmes

// Git Basic commands
git init
  - Initializes the current folder as a git repository 

git status
  - Current status of the folder 

git add path/to/file
 - To add a particular file

git add .
  - add all files staging area -
 
git commit -m "First commit"
  - commit the changes to the git repository

git log --oneline
 - see a brief log of commits in line by line

git log
 - see a brief log of commits with author and date

git checkout <commit> <file>
  - checkout the file from an older commit

git checkout -- <file> 
 - to discard changes in working directory

git reset <file>
  - unstage a staged file, but leave working directory unchanged

git reset
  - reset the staging area to the last commit without disturbing the working directory
Chetan Nada

Git Basic Commandmes

git commit -m "Commit message"
Fancy Flatworm

Git Basic Commandmes

git push origin <branchname>
Fancy Flatworm

Git Basic Commandmes

git clone username@host:/path/to/repository
Fancy Flatworm

Git Basic Commandmes

git checkout -b <branchname>
Fancy Flatworm

Git Basic Commandmes

git push --all origin
Fancy Flatworm

Git Basic Commandmes

git merge <branchname>
Fancy Flatworm

Git Basic Commandmes

git add <filename>

git add *
Fancy Flatworm

Ответы похожие на “Git Basic Commandmes”

Вопросы похожие на “Git Basic Commandmes”

Больше похожих ответов на “Git Basic Commandmes” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования