Su ostukorv on hetkel tühi!
Versioonihaldussüsteemid
Git CMD Konfigureerimine:
git config –global user.name “Nikita Konkin”
git config –global user.email “nikita.konkin12345@gmail.com”
Konfigureerimise kontroll:
git config user.name
git config user.email
git config –global –list
Git repositooriumi kloonime
git clone S:\TARgv24\ylesanne
git status – Kasutaja staatuse kontroll
Git branch – создание ветки
git branch NikitaK
Git checkout – переключение ветки
git checkout NikitaK
Git branch -d NikitaK – удаление ветки
Git add – добавление файла
Muudatuste registreerimine ja kommenteerimine
git commit -a -m “nimi on lisatud”
Muudatuste üles laadimine serverisse
git push
git push –set-upstream origin NikitaK
Новый репозиторий
git init “repoNimi”

Ключ SSH

- Открыть в PowerShell ключ, затем переходим в /С/Пользователь/”имя пользователя”/.ssh
- Файл с расшiрением .pub вставляем как ключ в GitHub
Add index.html
to the Staging Enviornment:
git index.html
Stage all new, modified, and deleted files. Use the shorthand command:
git add -A
Check the compact version of the status for repository:
git status –short
View the history of commits for the repository:
git log
Show all git possible commands in command line:
git help –all
Create, and move to a new branch
with the name hello-you
:
git checkout -b hello-you
Merge the hello-you
branch with the current branch:
git merge hello-you
Remove the hello-you
branch from the local repository:
git branch -d hello-you
Add a remote
repository as an origin
:
git remote add origin https://github.com/x/y.git
Get all the change history of the origin for this branch:
git fetch origin
Merge the current branch with the branch master, on origin:
git merge origin/master
Update the current branch from its origin using a single command:
git pull origin
push
the current branch
to its default remote origin
:
git push origin
List all local and remote branches of the current Git.
git branch -a
List only remote branches of the current Git.
git branch -r
Clone the repository https://abc.com/x/y.git
to a folder named “newlife
“:
git clone https://abc.com/x/y.git newlife
Rename the origin
remote
to upstream
:
git remote rename origin upstream
In .gitignore
add a line to ignore all .temp
files:
*.temp
In .gitignore
add a line to ignore all files in any directory named temp
:
temp/
In .gitignore
add a single line to ignore all files named temp1.log
, temp2.log
, and temp3.log
:
temp?.log
In .gitignore
, ignore all .log
files, except main.log
:
*.log
!main.log
Add a new remote
named ssh-origin
connecting to x/y.git
on abc.com
using SSH
:
git remote add ssh-origin git@abc.com:x/y.git
Replace the remote
URL
for origin
with x/y.git
on abc.com
using SSH
:
git remote set-url origin git@abc.com:x/y.git
Show the log
of the repository, showing just 1 line per commit
:
git log –oneline

revert
the latest commit
:
git HEAD

revert
the two last commits:
git revert HEAD~1
reset
to the commit
with the hash abc1234
:
git reset abc1234
Amend the previous commit
to with the message "Updated index"
:
git commit –amend -m "Updated index"