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
#ignore thumbnails created by windows | |
Thumbs.db | |
#Ignore files build by Visual Studio | |
*.obj | |
*.exe | |
*.pdb | |
*.user | |
*.aps | |
*.pch | |
*.vspscc |
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
>> git push [remote] [fork]:[branch] | |
ex. | |
git push dev1 ftdev1:master |
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
-delete the remote | |
>> git push [remote] :[branch] | |
-delete the local | |
>> git branch -d [branch] | |
ex. | |
git push origin :dev1 | |
git branch -d dev1 |
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
ex. | |
git checkout origin master | |
git pull origin master | |
--create branch and track master | |
git checkout -b f1-1234 origin/master | |
--make changes | |
--resolve conflicts, DO NOT PUSH branch, the merge is just to resolve conflicts |
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
-Go to the starting point of the project | |
>> git checkout origin master | |
-fetch all objects | |
>> git fetch origin | |
-Make the branch from the tag | |
>> git branch new_branch tag_name | |
-Checkout the branch | |
>> git checkout new_branch | |
-Push the branch up | |
>> git push origin new_branch |
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
git push -f origin HEAD\^:master | |
so commit history in the remote looks like: | |
Had to clean up some things from the merge | |
nickfloyd (author) | |
January 26, 2011 | |
commit 4bcce9878c454ba5583c | |
tree e6f4cffa47b1301a4cfc |
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
#create a passenger host config file | |
touch /etc/apache2/passenger_pane_vhosts/[site].local.vhost.conf | |
#contents ++++++++++++++++++ | |
<VirtualHost *:80> | |
ServerName site.local | |
DocumentRoot "/Users/nfloyd/code/rails/site/public" | |
RackEnv development | |
<Directory "/Users/nfloyd/code/rails/site/public"> |
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
sudo rails -s -p80 | |
using rvm | |
rvmsudo rails server -p80 |
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
//This returns a 404 not found - powershell; I expected a 401 if my creds were bad | |
$Url = "https://github.com/api/v2/xml/commits/list/fellowshiptech/portal/Portal_2011.6.23_15-26" | |
$webclient = new-object system.net.webclient | |
$webclient.credentials = new-object system.net.networkcredential("user", "password") | |
$result = $webclient.DownloadString($Url) | |
$result | |
//This returns the data I want via terminal | |
curl -u user:password https://github.com/api/v2/xml/commits/list/fellowshiptech/portal/Portal_2011.6.23_15-26 |
OlderNewer