Skip to content

pathberries/git-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Pathberries

Git Commands

- Empty Repository Initialization

git init

- Configuring email

git config --global user.email "user@mail.com"

- Configuring name

git config --global user.name "userName"

- Adding URL to Repository

git remote add origin URL

- Cloning a Repository

git clone URL

or

git clone URL destinationFolderName

- List branches

git branch

- Creating a branch

git branch branchName

- Changing branch

git checkout destinationBranch

- Merging branch

git merge branchToMerge

- Checking status

git status

- Adding files that were modified

git add fileName

or

git add .

- Commiting files

git commit -m "message"

- Pull files (GitHub to Local)

git pull

- Push Files (local to GitHub)

git push -u origin master

or

git push

Releases

No releases published

Packages

No packages published