git --version
git config --global user.name "Fatih Keles"
git config --global user.email "[email protected]"
git config --global user.name
git config --global user.email
Thanks to: https://gist.github.com/evantoli/f8c23a37eb3558ab8765
In the following form
git config --global http.proxy http://proxyuser:[email protected]:8080
git config --global http.proxy http://www-proxy-lon.uk.oracle.com:80
git config --global https.proxy http://www-proxy-ams.nl.oracle.com:80
git config --global --unset http.proxy
git config --global --get http.proxy
cd C:\GIT
mkdir hello-world
cd hello-world
git init
git status
git add readme.md
git commit -m "Created readme"
git diff
git config --global user.username "fatih-keles"
git config --global user.username
git remote add <REMOTENAME> <URL>
git remote set-url <REMOTENAME> <URL>
git pull <REMOTENAME> <BRANCHNAME>
git remote -v
git push <REMOTENAME> <BRANCH>
git remote add origin https://github.com/fatih-keles/hello-world.git
git remote set-url origin https://github.com/fatih-keles/hello-world.git
git push origin master
git clone https://github.com/fatih-keles/patchwork.git
cd patchwork
git remote -v
http://fatih-keles.github.io/patchwork
You can name this remote connection anything you want, but typically people use the name 'upstream'
git remote add upstream https://github.com/jlord/patchwork.git
git branch <BRANCHNAME>
git branch add-fatih-keles
git checkout <BRANCHNAME>
git checkout add-fatih-keles
git status
git commit -m "add fatih-keles"
git push origin add-fatih-keles```
### You can create and switch to a branch in one line
```git checkout -b <BRANCHNAME>```
### Create a new branch
```git branch <BRANCHNAME>```
### Move onto a branch
```git checkout <BRANCHNAME>```
### List the branches
```git branch```
### Rename a branch you're currently on
```git branch -m <NEWBRANCHNAME>```
### Verify what branch you're working on
```git status```
### See changes to the remote before you pull in
git fetch --dry-run
### GIT pull
```git pull origin add-fatih-keles```
### clean up
git checkout gh-pages git merge add-fatih-keles git branch -d add-fatih-keles git push --delete git push origin --delete add-fatih-keles git pull upstream gh-pages
### Merge a branch into current branch
```git merge <BRANCHNAME>```
### Change the branch you're working on
```git checkout <BRANCHNAME>```
### Delete a local branch
```git branch -d <BRANCHNAME>```
### Delete a remote branch
```git push <REMOTENAME> --delete <BRANCHNAME>```
### Pull from a remote branch
```git pull <REMOTENAME> <BRANCHNAME>```