Last active
April 25, 2016 19:13
-
-
Save greghelton/c0f4fe66a12f205e9f921cfd33acc046 to your computer and use it in GitHub Desktop.
The git CLI (command line interface) brings both git and linux commands to your Windows command terminal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start in Windows: | |
cd \users\username\dev\src\java\project\ | |
C:\> set PATH=%PATH%;c:\progra~1\git\bin | |
C:\> bash | |
$ cd /c/users/gah285/dev/src/java/project | |
$ export PATH=/c/progra~1/git/usr/bin:/c/progra~1/git/bin | |
$ git remote add origin git@dpoinfwlapv01.corp.pvt:username/project.git | |
$ git push -u origin master | |
The authenticity of host 'dpoinfwlapv01.corp.pvt (10.243.38.82)' can't be established. | |
RSA key fingerprint is SHA256:tZKHwURxZB6tYFh0yrRQrfE8biQia3Jq1ew7sRyOkDU. | |
Are you sure you want to continue connecting (yes/no)? yes | |
Warning: Permanently added 'dpoinfwlapv01.corp.pvt,10.243.38.82' (RSA) to the list of known hosts. | |
Enter passphrase for key '/c/Users/gah285/.ssh/id_rsa': | |
Enter passphrase for key '/c/Users/gah285/.ssh/id_rsa': | |
Counting objects: 16, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (13/13), done. | |
Writing objects: 100% (16/16), 8.33 KiB | 0 bytes/s, done. | |
Total 16 (delta 0), reused 0 (delta 0) | |
To git@dpoinfwlapv01.corp.pvt:GAH285/BL0100J10.git | |
* [new branch] master -> master | |
Branch master set up to track remote branch master from origin. | |
$ git status | |
On branch master | |
Your branch is up-to-date with 'origin/master'. | |
$ git add db.properties | |
$ git commit -m "properties file with no passwords" | |
$ git push | |
Enter passphrase for key '/c/Users/username/.ssh/id_rsa': | |
Counting objects: 3, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (3/3), done. | |
Writing objects: 100% (3/3), 601 bytes | 0 bytes/s, done | |
Total 3 (delta 0), reused 0 (delta 0) | |
To git@dpoinfwlapv01.corp.pvt:DPI/BL0100J10.git | |
6a99f62..34e2005 master -> master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment