Tips:
- Use
--globalto set options globally (for all repos) for the current user. - Use
--system(viasudoorsu) to set options for all users.
git config --global core.editor "nano"
| function Get-DiskFree | |
| { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(Position=0, | |
| ValueFromPipeline=$true, | |
| ValueFromPipelineByPropertyName=$true)] | |
| [Alias('hostname')] | |
| [Alias('cn')] |
| function Get-Uptime | |
| { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(ValueFromPipeline=$true, | |
| ValueFromPipelineByPropertyName=$true)] | |
| [Alias('hostname')] | |
| [Alias('cn')] | |
| [string[]]$ComputerName = $env:COMPUTERNAME |
| #!/usr/bin/env python2.7 | |
| # Purpose: Look at HTTP Response headers from requested server. | |
| # Credit: http://stackoverflow.com/questions/843392/python-get-http-headers-from-urllib-call | |
| import httplib | |
| from pprint import pprint as ppr | |
| import sys | |
| # Bash script that uses mplayer and oggenc to rip and encode the audio from | |
| # various movie formats to Ogg Vorbis and MP3. I assume I wrote it based | |
| # off of the poor quality. ;) | |
| # Remove movie file after rip/encode (1=YES, 0=NO) | |
| REMOVE_MOVIE="0" | |
| # Remove wav file after encode (1=YES, 0=NO) | |
| REMOVE_WAV="1" |
| git branch --move old_branch new_branch | |
| git checkout new_branch | |
| git push --set-upstream origin new_branch | |
| git push origin --delete old_branch |
git-svn is a git command that allows using git to interact with Subversion repositories. git-svn is part of git, meaning that is NOT a plugin but actually bundled with your git installation. SourceTree also happens to support this command so you can use it with your usual workflow.
Reference: http://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion
You need to create a new local copy of the repository with the command
| #!/bin/bash | |
| # Untested shell script to create and mount an image file. Pretty much a copy/paste | |
| # from this site: | |
| # | |
| # http://ubuntuhak.blogspot.com/2012/10/how-to-create-format-and-mount-img-files.html | |
| img_file="/tmp/bucket.img" | |
| img_size_in_mb="1024" | |
| mount_point="/tmp/bucket" |