Skip to content

MyWiki

Category: Git – SVN

Posted on September 26, 2018 by admin

Revert a faulty merged branch

If you accidentally merged a feature branch into develop you can use git-revert to undo the merge. But when the time has come to merge the feature branch into develop, git-merge command sees the original merge, and happily announces that all is well and branches have been already merged. To revert the revert without screwing
Continue reading Revert a faulty merged branch

Posted on November 29, 2017 by admin

Make Git ignore file mode (chmod) changes

Go to the root of the directory with the git clone ans type:\ git config core.fileMode false   // –global flag will make it be the default behavior for the logged in user git config –global core.fileMode false   // Remove your local configuration to make the global configuration take effect git config –unset core.fileModegit
Continue reading Make Git ignore file mode (chmod) changes

Posted on August 10, 2017 by admin

Keep Git Fork up-to-date

Keeping Your Fork Up to Date While this isn’t an absolutely necessary step, if you plan on doing anything more than just a tiny quick fix, you’ll want to make sure you keep your fork up to date by tracking the original “upstream” repo that you forked. To do this, you’ll need to add a
Continue reading Keep Git Fork up-to-date

Posted on April 21, 2017September 11, 2017 by admin

Git clone into non-empty directory

If you want to clone a git repository into a non-empty directory you will get an error: fatal: destination path ‘.’ already exists and is not an empty directory. You can fix this: git init git remote add origin PATH/TO/REPO git fetch git checkout -t origin/master   If you get the following error: fatal: Cannot
Continue reading Git clone into non-empty directory

Posted on February 19, 2016 by admin

Git pull: fatal: Couldn’t find remote ref refs/heads

Start by looking at .git/config file in you’re project folder for references to that branch, and removing them. Another way is to prune all stale branches from your local repository. This will delete all local branches that already have been removed from the remote: git remote prune origin –dry-run // If it looks correct git
Continue reading Git pull: fatal: Couldn’t find remote ref refs/heads

Posts navigation

Page 1 Page 2 … Page 5 Next

Categories

  • Android
  • AngularJS
  • Ansible
  • Apache
  • Apple
  • Browsers
  • Conference
  • Databases
  • Dev Tools
  • Docker
  • Domoticz
  • Drupal
  • Elasticsearch
  • Framework 7
  • Gadgets
  • Gaming
  • Git – SVN
  • Gulp
  • Hardware
  • Home Automation
  • HTML
    • Css
  • Ionic
  • Jenkins
  • jQuery – Javascript
  • Kodi
  • Laravel
  • Linux
    • Linux Mint
  • Mobile development
    • Android
    • Cordova – PhoneGap
    • iPhone
  • OSX
  • Photography
  • PHP
    • Google API
    • phpsnippet
  • Raspberry Pi
  • ResourceSpace
  • Security
  • Software
  • SQL
  • Symfony
    • Doctrine
    • Symfony Guide
  • Symfony wiki
  • Things to do
  • Twig
  • Web development
  • Webapps
  • Windows
  • Wordpress
  • Zend Developers Guide

Related Post

  • Revert a faulty merged branch
    Git - SVN
    Revert a faulty merged branch
    If you accidentally merged a feature branch into develop you can use git-revert ...
  • Make Git ignore file mode (chmod) changes
    Git - SVN
    Make Git ignore file mode (chmod) changes
    Go to the root of the directory with the git clone ans type:\git config core.fil...
  • Git clone into non-empty directory
    Git - SVN
    Git clone into non-empty directory
    If you want to clone a git repository into a non-empty directory you will get an...
  • Keep Git Fork up-to-date
    Git - SVN
    Keep Git Fork up-to-date
    Keeping Your Fork Up to DateWhile this isn't an absolutely necessary step, if yo...
  • Git: cheat sheet
    Git - SVN
    Git: cheat sheet
    Switch to the $id branch:git checkout $idDelete the $id branch:git branch -d $id...
  • Git: configure Git over HTTP
    Git - SVN
    Git: configure Git over HTTP
    The most basic Git configuration allows anonymous read access to the Git reposit...

© MyWiki 2022
Theme: creativefocus by Mladjo.