Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: git

19 Apr

git push

Command to push the current repository in git to a online server


git push
admin Posted in Code, Command Line, Linux command, filler, git, Linux, push Leave a comment
11 Jul

Remove a Folder from Git

Remove a given folder from a Git repository…


git rm -r cache/
admin Posted in Code, Command Line command, folder, git, reculsive, remove, rm 3 Comments
09 Feb

Commit All Changes in Git

Telling Git when you’ve added, deleted and renamed files gets tedious. Use this command and Git will look at the files in the current directory and work everything out for itself. The -z and -0 options prevent ill side-effects from filenames containing strange characters.


git-ls-files -d -m -o -z | xargs -0 git-update-index --add --remove

Original Article

admin Posted in Command Line, Linux command, commit, git, Linux, programming, xargs Leave a comment
08 Dec

Merging a Branch with the Master Branch in git

The commands needed to merge two branches in git.


git checkout master  
git merge BrachName
git commit -m "Merged" -a
admin Posted in Code, Command Line brach, cli, command, git, master, merge Leave a comment
28 Nov

Braching in Git

Use this command to create a new brach in a git Repository


git branch NameOfNewBranch
admin Posted in Command Line brach, braching, cli, command, git, repo, source Leave a comment
04 Nov

git status Without the Untracked Files

Don’t show the untracked files in git status


git status | perl -pe "exit if(/Untracked files\:/)"
admin Posted in Command Line, Linux command, git, gitstat, Linux, Perl, status 5 Comments
16 Sep

Using Git – the Basic Commands

Initialize a New Project in Git…


git init
git add .
git commit

#Add a file
git add file.php

git status

git commit

Git Tutorial

admin Posted in Code, Command Line command, control, git, source 2 Comments

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑