The Linux Pages

git

Where is git config file?

2 September 201617 September 2016 ench0 1 Comment Git, Uncategorized

Short answer: .git/config in your active git repository; ~/.gitconfig or ~/.config/git; /etc/gitconfig More detailed answer can be found in the git man page:

Continue reading


git clone gives warning: “remote HEAD refers to nonexistent ref, unable to checkout.”

17 January 201319 November 2013 ench0 4 Comments Git

This warning: “remote HEAD refers to nonexistent ref, unable to checkout.” happened to me today  and since it was an odd enough warning (I’ve never seen it before in all my years of work with git) I thought it’s worth describing the situation here and how I solved it. I cloned a remote git repository […]

Continue reading


HowTo: Listing (changed/untracked) files in git

20 April 201228 May 2012 ench0 1 Comment Git, Shell and environment

When working with git it may often be convenient to get a (pure) list of files to give to some other command (e.g. astyle). This may be implemented as a trigger on the server but that has its pros and cons. Listing the modified files and processing them locally is the safest way as this […]

Continue reading


How to create a brand new git tracking branch (from scratch)?

26 May 201126 May 2011 ench0 Leave a comment Git, Programming

There’s tons of advice on the web on how to setup a new local branch that tracks and existing remote branch. But what I was looking to do is create a brand new branch (i.e. not yet present neither on hte server nor on your workstation) and have it be a tracking branch. After lots […]

Continue reading


Git remote branches: how to create, track, remove/delete

19 April 201118 August 2016 ench0 5 Comments Git, Programming

1. Here’s how to to create a remote branch in git:: git push origin origin:refs/heads/my_branch … or even simpler and more straightforward: git branch my_branch # create branch locally git push origin my_branch # push it to server 2. To push your changes to the remote branch: git push origin my_branch 3. To delete the […]

Continue reading


How to move a branch in git?

23 March 201111 July 2017 ench0 2 Comments Git, Programming

“Moving a branch” may mean two things: 1. Move the contents (the commits, the changes) associated with a branch name somewhere else in the repository. 2. Move the branch name (not the code changes!) to point to some other commit. Let’s examine the two possibilities in detail: 1. Move branch contents and name: This case […]

Continue reading


Tags

bash boot compile C programming drupal drush emacs etc ethernet Fedora git grep how to html httpd init kernel linux linux partition login mariadb mount mysql networking oracle package managers password phpMyAdmin programming rpm shell sql ssh vbox version control system virtual box vm web server win32 wordpress www xargs xfce xwin yum

Categories

  • Android Development
  • Bash
  • C programming
  • dpkg/apt-get
  • drupal
  • Emacs
  • Git
  • Java
  • Linux administration
  • Linux device drivers
  • Linux Gaming
  • Linux kernel
  • Linux Networking
  • Linux on Windows
  • Linux printing
  • Linux sound and ALSA
  • Package Managers
  • Programming
  • RPM
  • Shell and environment
  • Tips and tricks
  • Uncategorized
  • VirtualBox
  • Virtualization
  • web development
  • wine
  • WMaker
  • Wordpress Tips
  • X Window System
  • XFCE
dazzling Theme by Colorlib Powered by WordPress