brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
/** | |
* Script para renomear jars de releases snapshots baixados do Artifactory | |
* Possibilita time de QA rodar versão snapshot instalada da seguinte maneira | |
* java -jar instalador.jar -repo http://50.56.88.164:8080/artifactory/repo | |
* -snapshot os jars instalados vem com um timestamp adicionado ao nome e isto | |
* impossibilita a execução pois os MANIFESF.MF referenciam jars no formato |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
Check the Windows versions at https://github.com/giggio/poshfiles/blob/main/home/.gitconfig and https://github.com/giggio/poshfiles/blob/main/home/.gitattributes.
Check the Linux version at https://github.com/giggio/dotfiles/blob/main/home/.gitconfig.
#!/usr/bin/env ruby | |
# | |
# Git commit-msg hook. | |
# | |
# If your branch name is in the form "story/DIO-1234/description", | |
# automatically adds "DIO-1234/description: " to commit messages, unless they mention "DIO-1234" already. | |
# | |
# If your branch name is in the form "mario/1234-my-trello-card", | |
# automatically adds "1234-my-trello-card: " to commit messages, unless they mention "1234" already. | |
# |
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream |
When you modify a file in your repository, the change is initially unstaged. In order to commit it, you must stage it—that is, add it to the index—using git add
. When you make a commit, the changes that are committed are those that have been added to the index.
git reset
changes, at minimum, where your current branch is pointing. The difference between --mixed
and --soft
is whether or not your index is also modified. So, if we're on branch master
with this series of commits:
- A - B - C (master)
HEAD
points to C
and the index matches C
.
function Update-AssemblyInfoVersionFiles | |
{ | |
Param | |
( | |
[Parameter(Mandatory=$true)] | |
[string]$productVersion | |
) | |
$buildNumber = $env:BUILD_BUILDNUMBER | |
if ($buildNumber -eq $null) |