Your cart is currently empty!
Git CMD
Working with Git CMD
\opilane>cd desktop
Move into the Desktop directory.
\opilane\Desktop>cd ..
Go one level up from the Desktop directory (exit the Desktop folder)
> git config --global user.name "JekGuz"
Set your Git username globally
> git config --global user.email "jekaterina.guzek@gmail.com"
Set your email address for Git globally
> git config --global --list
Display all global Git configuration settings.
> git clone https://github.com/IrinaMerkulova/TARgv24.git
Use clone
to copy the repository to your local machine (e.g., Desktop).
> cd TARgv24
Navigate into the TARgv24 directory.
\TARgv24> git branch JekaterinaG
Create a new branch named JekaterinaG
> git checkout JekaterinaG
Switch to the branch JekaterinaG
\TARgv24> git status
Check the status of your working directory.
Output:
On branch JekaterinaG
nothing to commit, working tree clean
This means: you’re on the branch JekaterinaG
, and there are no changes to commit – your working tree is clean.
C:\Users\kotik\TARgv24> git status
Output:
On branch JekaterinaG
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: nimi.txt
no changes added to commit (use "git add" and/or "git commit -a")
Explanation:
You are still on the branch JekaterinaG
, and the file nimi.txt
has been modified, but the changes are not yet staged for commit. Git is suggesting to either:
- Use
git add
to stage the file for commit - Or use
git restore
to discard the changes