Horje
git basic commands Code Example
git basic commands
git status
git basic commands
git commit -m "Commit message"
git basic commands
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
Git Basic commands
// 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
git basic commands
git push origin <branchname>
git basic commands
git clone username@host:/path/to/repository
git basic commands
git checkout -b <branchname>
git basic commands
git push --all origin
git basic commands
git tag 1.0.0 <commitID>
git basic commands
git add <filename>

git add *




Shell

Related
ver arquivos alterados git Code Example ver arquivos alterados git Code Example
ubuntu connect openvpn Code Example ubuntu connect openvpn Code Example
check the changes which are to be committed using command Code Example check the changes which are to be committed using command Code Example
mkdir multiple directories windows Code Example mkdir multiple directories windows Code Example
git find unmerged files Code Example git find unmerged files Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
16