All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
1 answer
5k views

How to download all repositories of a GitHub account to my personal computer without using github cli? [duplicate]

I use WSL Ubuntu 18.04 unchanged. I have one GitHub user with 6 GitHub repositories of that user. Basically I just need to download all my GitHub repositories as I wish to make a local backup of all ...
Arcticooling's user avatar
0 votes
2 answers
569 views

Is it possible to parse a command's arguments automatically?

I would like to modify the git clone command -- such that it use a local cache -- by creating a wrapper that does the following: If a repository doesn't exist in the cache, clone it. Copy it to the ...
Nishant's user avatar
  • 583
1 vote
1 answer
255 views

accessing git-annex special remote from new repository

I'm using git-annex in version 7.20190129 as it is provided on my Debian Stable (Buster) machine to keep big files under version control and have them distributed over multiple machines and drives. ...
n0542344's user avatar
  • 386
2 votes
1 answer
2k views

How to properly solve "git-gui: command not found" on Arch Linux?

The Arch Linux git package installs git-gui under /usr/lib/git-core/. This means git-gui cannot be launched directly from the terminal without specifying the full path: $ git-gui bash: git-gui: ...
Marc.2377's user avatar
  • 1,112
3 votes
1 answer
641 views

How to generate (git) diffs with <n> characters of context?

The --unified=<n> option lets you set the number of lines; is there a way to do the same for characters? example limit the context around the changes to X character(s) when using git diff --...
Knu's user avatar
  • 31
0 votes
1 answer
286 views

Git: change content of previous commit and push [closed]

I'm reviewing a repo and I'd like to make some comments, it would add more content like adding comments, make some changes ..etc. How to change content of files of previous commit and do push, I'm ...
Tuyen Pham's user avatar
  • 1,805
1 vote
2 answers
417 views

Git: keep color of git stash list --pretty=<..> through a pipe

I have this command: git stash list --pretty="%C(yellow)%h %>(14)%Cgreen%cr %C(blue)%gs" gives output colored, but if I pipe it git stash list <..> | less -R, color disappear in output. ...
Tuyen Pham's user avatar
  • 1,805
1 vote
1 answer
68 views

is there a command line terminal interface to git [closed]

I am looking for an command line terminal based git client interface to git on centos linux.is it available?
shyam's user avatar
  • 11
3 votes
2 answers
2k views

Accessing a git repository through ssh-config

I am trying to push to my git repository from cygwin but in vain. It used to work. I get $ git push ssh: Could not resolve hostname prooftheory: Name or service not known fatal: Could not read from ...
Gergely's user avatar
  • 814
2 votes
3 answers
4k views

pass answer to git command

I try to get "git pull". It is asking for username and password. How i can automate it? ➜ git:(master) git pull Username for 'http://127.0.0.1': username Password for 'http://[email protected]': ...
Andrew Pi's user avatar
3 votes
2 answers
5k views

bash if condition on git command result

I have the following error due an invalid git command within my shell-script. git push blabla master results in fatal: 'blabla' does not appear to be a git repository I would like to respond to ...
xetra11's user avatar
  • 546
1 vote
2 answers
489 views

inaccessible directory

I git cloned into a directory "/source" before I mkdired it. It did not show up in its parent directory, but when I run the ls command, the output is indented like this: database static ...
user3605834's user avatar
1 vote
1 answer
1k views

Updating a git variable in the Shell prompt on every command

I am running TCSH and I would like to update my prompt every time I run a command. I think can currently do that via backticks. set tmpstr = `git status --untracked-files=no --porcelain` set ...
cripp's user avatar
  • 56
1 vote
1 answer
487 views

Broken git autocompletion after I have overridden the git command

Recently git branch <tab> started showing me the following error: $ git branch bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `/usr/bin/git --git-dir=.git for-each-...
Ionică Bizău's user avatar
4 votes
1 answer
2k views

How to create a deterministic tar.gz using git-archive?

Creating a git repository for testing. ~ $ mkdir somefolder ~ $ cd somefolder/ ~/somefolder $ git init Initialized empty Git repository in /home/user/somefolder/.git/ ~/somefolder $ echo test > ...
adrelanos's user avatar
  • 1,826
4 votes
2 answers
393 views

Is it possible to restrict certain commands from being run in a directory?

I have two directories: src and projects. I would like to prevent myself from running git ... unless I am specifically inside src or projects. Is this possible?
sdasdadas's user avatar
  • 143
6 votes
2 answers
2k views

Bash commands with spaces in them (git config or git-config?)

Please forgive me if this seems easy, but I only started learning Unix 2 days ago. Basically, I have been taught that when typing a command into the terminal it needs to be of the form: [command ...
Lars's user avatar
  • 163
14 votes
2 answers
10k views

What does "--" mean in Linux/Unix command line? [duplicate]

Possible Duplicate: What does “--” (double-dash) mean? git diff [options] [<commit>] [--] [<path>…] In here, how should I understand what [--] means? And when should I use it.
Benjamin's user avatar
  • 1,515
8 votes
2 answers
6k views

Git auto-complete

I am using Git as many of you do. Also, I don't use any GUI for that — just CLI. So I was wondering: are there any way to make Git commands (git status, git checkout etc.) complete themselves when ...
daGrevis's user avatar
  • 843
43 votes
3 answers
481k views

Installing git "sudo: apt-get: command not found"

I am trying to install git. I run the following command: sudo apt-get install git-core git-gui git-doc But receive the following error: sudo: apt-get: command not found What should I do?
Lucy Weatherford's user avatar
5 votes
4 answers
177 views

Change command-line "environment" to programs command

In a console, is it possible to change into a commands "environment"? To explain, I take "git" as an example. While programming and using a git repository, I change to the repos path and then do many "...
user905686's user avatar
1 vote
1 answer
2k views

Execute a command in a different path

When using Git VCS, I execute all of the git commands on the directory that contains a .git repository. I want to execute a git-pull through an SSH trigger but how do I define the path to the ...
Gio Borje's user avatar
  • 113