background preloader

Tortoisegit - Porting TortoiseSVN to TortoiseGit

Tortoisegit - Porting TortoiseSVN to TortoiseGit
Git Version of TortoiseSVN. It is a port of TortoiseSVN for Git. TortoiseGit supports you by regular tasks, such as committing, showing logs, diffing two versions, creating branches and tags, creating patches and so on (see our Screenshots or documentation). You're welcome to contribute to this project (help on coding, documentation, Translation, testing preview releases or helping other users on the mailing lists is really appreciated). If you upgraded to TortoiseGit 1.8.8.0 and TortoisePLink reports "missing MSVCR110.dll", go to TortoiseGit settings, Network and select "TortoiseGitPLink.exe" as ssh client (which is located in the TortoiseGit\bin directory; issue #2156 ). There seems to be a bug in the MFC library, so please make sure you have the latest service pack installed. The latest and recommended release of TortoiseGit is: 1.8.8.0, see ReleaseNotes for details. Download TortoiseGit System prerequisites and installation howto Get a full list of screenshots. Context menu Commit Dialog Related:  Git git

Git Recherche et téléchargement de fichiers sur Github Github est un service formidable où les gens stockent leurs codes sources et leurs projets... Mais c'est aussi une mine d'or de fichiers en tout genre. Certains utilisateurs de Github font d'ailleurs preuve de négligence et synchronisent même parfois des fichiers contenant des mots de passe en clair ou des infos plus ou moins confidentielles. Pour effectuer ce genre de recherches sur Github, il existe un petit script python qui permet tout simplement de récupérer sur votre ordinateur, les fichiers qui vous intéressent. Par exemple, en tapant : . vous récupérerez tous les historiques bash qui trainent. . vous récupérerez tous les htpasswd qui trainent . vous récupérez des boites mails qui trainent . et des logins/passwords de connexions à des bases de données. Je ne passe pas tout en revue. Pour installer ghrabber, il faut faire un petit : sudo easy_install pip sudo pip install beautifulsoup requests Puis téléchargez ghrabber ici. Vous avez aimé cet article ?

Migrer d'un serveur git à un autre Dans une entreprise, ça bouge beaucoup, et en général, le code suit le mouvement… Si vous voulez migrer du code d’un serveur git à un autre, alors il y a une méthode toute simple : utiliser le script ci-dessous. C’est tout simple, il suffit de copier / coller le script dans un fichier et de le lancer en ligne de commande. Il faudra toutefois, avant les réjouissances, paramétrer quelques variables d’environnement, en tapant simplement (et par exemple) : GIT_SERVER_FROM=git@github.cedrik.frGIT_SERVER_TO=git@gitlab.digitas.frREPO_PREFIX=:myproject/REPOS= »core module1 module2″ Cela migrera : les projets : core + module1 + module2à partir de : git@github.cedrik.fr:myproject/Vers : git@gitlab.digitas.fr:myproject/ Et voilà ! [Ce script a été vu pour la première fois sur TechRevolutions.fr] Vous aimez cet article ? Partage

Git Reference Getting and Creating Projects In order to do anything in Git, you have to have a Git repository. This is where Git stores the data for the snapshots you are saving. There are two main ways to get a Git repository. docs book git init initializes a directory as a Git repository To create a repository from an existing directory of files, you can simply run git init in that directory. $ cd konnichiwa$ ls README hello.rb This is a project where we are writing examples of the "Hello World" program in every language. $ git init Initialized empty Git repository in /opt/konnichiwa/.git/ Now you can see that there is a .git subdirectory in your project. $ ls -a . .. .git README hello.rb Congratulations, you now have a skeleton Git repository and can start snapshotting your project. In a nutshell, you use git init to make an existing directory of content into a new Git repository. docs book git clone copy a git repository so you can add to it On to Basic Snapshotting »

Gogs – Installer un serveur Git avec interface web en moins de 10 secondes « Si vous voulez vous monter un petit serveur Git avec interface web, en 2 secondes 12, c'est possible avec Gogs. Développé en Go, Gogs (pour Go Git Service) tourne sous OSX, Linux, Windows, ARM (Raspberry Pi, Synology avec l'aide de Docker...etc) et nécessite très peu de choses. Une base MySQL ou PostgreSQL ou rien du tout, car SQLite3 et TiDB sont supportés aussiGitEt une machine qui dispose d'un serveur SSH si vous voulez que votre serveur Git soit accessible via SSH. Si vous avez prévu de tout faire en HTTP/HTTPS, ce n'est pas nécessaire. Ensuite il suffit de télécharger Gogs ici et de lancer le binaire comme ceci : . Notez que des versions Docker et Vagrant sont aussi dispo. Et voilà ! Trop magique ! Source Rejoignez les 56215 korbenautes et réveillez le bidouilleur qui est en vous Suivez KorbenUn jour ça vous sauvera la vie..

jesseduffield/lazygit: simple terminal UI for git commands Lazygit – Une interface dans votre terminal pour Git Si vous aimez les interfaces en Curses et que vous cherchez quelque chose pour vous rendre la vie plus douce avec Git, voici Lazygit. Cette UI mise au point en Go à l’aide de la lib gocui permet de continuer à utiliser Git dans un terminal sans utiliser la ligne de commande. LazyGit permet d’ajouter des fichiers à votre projet, de résoudre les conflits avec des merges, de faire des checkout rapides sur les branches de votre choix, de parcourir les logs/diffs des différents commits/branches et stash. Évidemment, il permet de faire du Push et du Pull et de renommer vos commits. Voici un exemple de Merge : Bref, c’est plutôt sympa comme outil. go get github.com/jesseduffield/lazygit Et si vous n’avez pas Go, suivez le tuto d’installation disponible ici. La puissance d’un PC haut de gamme, partout avec vous Shadow c’est la puissance d’un PC haut de gamme, partout avec vous, surpuissant et accessible sur tous vos appareils.

What's the difference between 'git merge' and 'git rebase'? test && commit | revert – Kent Beck As part of Limbo on the Cheap, we invented a new programming workflow. I introduced “test && commit”, where every time the tests run correctly the code is committed. Oddmund Strømme, the first programmer I’ve found as obsessed with symmetry as I am, suggested that if the tests failed the code should be reverted. I hated the idea so I had to try it. The full command then is “test && commit || revert”. I’m not arguing for “test && commit || revert” nor even describing its trade-offs. I thought “test && commit || revert” wouldn’t work. The surprising answers are yes, you can actually write code this way. Limbo scales technical collaboration by propagating tiny changes instantly. “Test && commit || revert” keeps all tests green. Add test and pass. Violating any of these strategies results in the changes being instantly reverted, so you don’t have to worry about enforcing small diffs. I don’t suggest you try “test && commit || revert” because it’s better than what you do now.

Installation · Tig - Text-mode interface for Git Build settings are read from the file config.make and for certain systems also from contrib/config.make-$kernel. An example of the latter is Mac OS X, where contrib/config.make-Darwin provides out-of-the-box configuration for using the system ncurses library and linking with the iconv library. This makes it easy to configure the build without having to use the configure script. As a side note, configure itself generates a config.make file. Apart from the different standard make build variables (CC, CFLAGS, etc.) and standard configure variables (prefix, bindir, etc.), build settings can be one of the following flags: NO_SETENV: Define this variable to enable work-around for missing setenv().NO_MKSTEMPS: Define this variable to enable work-around for missing mkstemps().NO_WORDEXP: Define this variable to enable work-around for missing wordexp().NO_BUILTIN_TIGRC: Reduce the size of the binary by not including a built-in tigrc. LDLIBS = -lncursesw CPPFLAGS = -DHAVE_NCURSESW_CURSES_H

Tig, la console pour Git Tig est une interface ncurses qui peut être utilisée afin de parcourir un projet Git. C’est un peu court jeune homme Avec Tig, vous pourrez explorer un projet Git et obtenir un ensemble d’informations en parcourant l’arborescence présentée par l’interface ncurses. Installation L’installation peut s’effectuer de plusieurs façons en fonction de votre système d’exploitation et de vos envies : Avec Brew sous MacOS, soit la dernière version, soit la branche master disponible sur Github avec la commande brew install tigAvec le gestionnaire de paquets de votre distribution LinuxEn clonant le projet depuis Github et en le compilant vous-même, sur tout système Unix/LinuxL’installation sous Windows nécessite d’avoir Cygwin installé ainsi que les packages nécessaires à sa compilation. Configuration Vous pouvez exécuter Tig des 2 façons suivantes depuis le répertoire d’un projet, soit en l’associant avec une commande Git (par exemple git log | tig), soit directement. Et pour finir

-force considered harmful; understanding git's -force-with-lease - Atlassian Developer Blog Reading Time: 5 minutes Git’s push --force is destructive because it unconditionally overwrites the remote repository with whatever you have locally, possibly overwriting any changes that a team member has pushed in the meantime. However there is a better way; the option –force-with-lease can help when you do need to do a forced push but still ensure you don’t overwrite other’s work. It’s well known that git’s push --force is strongly discouraged as it can destroy other commits already pushed to a shared repository. This isn’t always completely fatal (if the changes are in someone’s working tree then they can be merged), but at the very least it’s inconsiderate, at worst disastrous. This is because the --force option makes the head of the branch point at your personal history, ignoring any changes that may have occurred in parallel with yours. One of the most common causes of force pushes is when we’re forced to rebase a branch. ssmith$ git push To /tmp/repo ! Read it online now

Cheatsheet · robbyrussell/oh-my-zsh Wiki To try it out if you have just cloned it (to your home directory): source ~/.oh-my-zsh/templates/zshrc.zsh-template Commands See ~/.oh-my-zsh/lib/directories.zsh Alias example: alias -s rb=vim #opens ruby files in vim# $ foo.rb # vim => foo.rbalias -g gp='| grep -i' #creates a global alias for grep# $ ps ax gp ruby# (all ruby process will be displayed) Tab-completion Git You also find these commands in Dash as a Cheat-sheet. Editors Symfony2 tmux Systemd systemctl Rails Rails Aliases RAILS_ENV Aliases Upgrade To upgrade .oh-my-zsh, run: upgrade_oh_my_zsh

git-secret

Related: