git shell code example

Example 1: git commands

…or create a new repository on the command line
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/metinkaya1511/FinraDeck.git 
(GitHub’daki adres)
git push -u origin master
…push an existing repository from the command line
git remote add origin https://github.com/metinkaya1511/FinraDeck.git  
(github adresi)
git push -u origin master 
CREATE BRANCH
-   git branch develop ==> it creates new branch named 'develop' but still 
keep being on master branch
-   git checkout develop ==> it will change your branch to the develop branch
git checkout -b develop ==> it creates also a branch named develop and 
switches to it automatically
DELETE
git branch -d <branch_name> deletes the branch. If we have unmerged changes, 
this command gives a warning and does not delete.  
git branch -D <branch_name> deletes the branch even if it has unmerged changes.
Gives no warning.
SWITCH to Branch
git checkout develop checks out the branch, switches to the branch.
git checkout -b <branch_name> creates a new branch and switches to it.  
git merge <branch_name>  this command takes changes from the given branch, 
and merges with the current branches we are on.

Example 2: Git

Git is a distributed version-control system for tracking changes in source
code during software development.

It is designed for coordinating work among programmers, but it can be used to
track changes in any set of files.

Its goals include speed, data integrity, and support for distributed,
non-linear workflows.

Example 3: git

git init
git add . 
git commit -m "First commit"
git remote add origin "URL of repository"
git push --set-upstream origin master

Example 4: git shell

C:\Users\Username\AppData\Local\GitHub\GitHub.appref-ms --open-shell

Example 5: git basic commands

git push origin master