git checkout -b new_branch origin/develop
git push -u origin new_branch
tar -zcvf archive_name.tar.gz directory_to_compress
def defaultBranch = 'master' | |
def sshLinkToRepo = 'ssh://[email protected]/dkoudlo/py-manage-server.git' | |
def gettags = ("git ls-remote -t -h " + sshLinkToRepo + " refs/heads/*").execute() | |
def branchNames = [defaultBranch] + gettags.text.readLines().collect { it.split()[1].replaceAll('refs/heads/', '') } | |
return branchNames.unique() |
# Download and Install Putty https://the.earth.li/~sgtatham/putty/latest/x86/putty-0.67-installer.msi | |
# Download putty version that can handle urls, reference http://schipka.com/archives/34 | |
# Download files from here http://schipka.com/wp-content/uploads/2008/09/putty_ssh.zip | |
# Unzip putty.exe and replace it with original C:\Program Files (x86)\PuTTY\putty.exe | |
# To associate Putty with ssh filetype | |
# Open command prompt as Administrator | |
ftype ssh="C:\Program Files (x86)\PuTTY\putty.exe" %1 | |
# Click on ssh://[email protected] link in browser it should pop a new putty window up and try to connect, | |
# good thing to do is to add a default identity file in putty, google it |