๐ธ๐๐๐๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐-๐๐๐ ๐ฒ๐ฟ ๐ฑ๐พ๐พ๐๐ฒ๐ฐ๐ผ๐ฟ, ๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐ ๐๐๐๐๐๐. ๐ธ๐ ๐ข๐๐ ๐๐๐ ๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐ ๐ ๐๐๐๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐๐ ๐ข๐๐๐ ๐ณ๐-๐ฐ๐๐๐ ๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐ ๐ฒ๐ฟ ๐ข๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐, ๐๐๐ ๐๐๐๐ ๐๐ ๐ฝ๐พ๐!!!
๐ฐ๐๐๐๐ ๐๐๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐๐ข, ๐๐๐๐๐๐ ๐ ๐๐๐๐๐๐ ๐ ๐๐๐ ๐ข๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐๐ ๐๐. ๐๐ ๐๐๐ ๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐ ๐๐๐ ๐๐๐ ๐๐๐ ๐๐๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐.
Command | Description |
---|---|
git init |
Initialize a local Git repository |
git clone ssh://git@github.com/[username]/[repository-name].git |
Create a local copy of a remote repository |
git add [file-name.txt] |
Add a file to the staging area |
git add -A |
Add all new and changed files to the staging area |
git commit -m "[commit message]" |
Commit changes |
git rm -r [file-name.txt] |
Remove a file (or folder) |
git checkout -- [file-name.txt] |
Discard changes to a file |
git push origin [branch name] |
Push a branch to your remote repository |
git pull |
Update local repository to the newest commit |
git pull origin [branch name] |
Pull changes from remote repository |
git remote add origin ssh://git@github.com/[username]/[repository-name].git |
Add a remote repository |
git log |
View changes |
git log --summary |
View changes (detailed) |
git log --oneline |
View changes (briefly) |
git diff [source branch] [target branch] |
Preview changes before merging |