Questions tagged [git-shell]

A shell environment to the Git server which provide a SSH access. It has a command-line interface to execute commands on the server remotely.

A shell environment to the Git server which provide a SSH access. It has a command-line interface to execute commands on the server remotely. It's used to replace the default shell (like bash or csh) used by the system or in the user settings.

64 questions
3
votes
1 answer

Which default commands work in git-shell?

I log into git-shell with PuTTy using a password. Whatever I type into the git-shell (the restricted login shell on a Debian linux server) results in a response like "unrecognized command". git> git help -a unrecognized command 'git'
Rusty
  • 33
  • 1
  • 5
3
votes
1 answer

How to insert SSH key on a Git server (git-shell access only)

I'd like to add my SSH key to authorized keys on a git server (a company server), to not have to insert my password every time I push. However for some reason I cannot make that working. What I tried: ssh-copy-id user@server /usr/bin/ssh-copy-id:…
EmDroid
  • 5,918
  • 18
  • 18
2
votes
1 answer

How to resolve conflict in GitLab using GitShell or GitHub Desktop

I am pretty new to GitLab because we just moved to it from ClearCase. I Cannot merge some changes into my remote then to my local repo because the GitHub Desktop says that there are some conflicts. I have been looking around to find a simple…
Mike
  • 777
  • 3
  • 16
  • 41
2
votes
0 answers

Why won't mkdir work on Git Shell or default command prompt (using Windows 10)?

I am new to using the command line to add/modify files. I want to be able to make new folders/directories. I cannot figure out why the command "mkdir" won't work on my machine. I have tried to use the default and Git Shell command prompt. "mkdir"…
2
votes
1 answer

Github automatically deletes a file during clone

I'm having trouble cloning one of my private repositories into my computer. Currently I've tried both using the application and the console and neither work. Using the application: No errors are specifically shown, but upon the completion of the…
Syntactic Fructose
  • 18,936
  • 23
  • 91
  • 177
2
votes
2 answers

Secure push and pull with no password GIT

I am working on my raspberry pi server and whenever I clone or do anything on the gitremotely I want to disable password on the push and pull. How do I do that? I don't want to enter password on git shell when I try to pull or push any changes to…
user3302688
  • 27
  • 1
  • 6
2
votes
2 answers

Do not commit specific changes to the git, but also don't revert them from my local workspace

I have made specific changes to the project configurations to modify my project environment, right now when I do git status I have this my .proj file marked as changed, but I don't want to push this specific file to the github master and I also…
inside
  • 3,047
  • 10
  • 49
  • 75
1
vote
1 answer

Problem with git (warning: shell level (1000) too high, resetting to 1, etc..)

Wanted to learn git, so i donwloaded it and wrote some things. When I opened it today, it "crashed" my windows 10 and then showed a few tenths of errors. I tried to work in visual studio code, but when i write some git command like ls-la it shows me…
Gorge
  • 30
  • 1
  • 8
1
vote
0 answers

Upload files as a user that only has git-shell

I have a user on my server that has /usr/bin/git-shell in /etc/passwd. How do I upload files to the folder ~/www/ on the server, where I have owner rights? If I try scp, I get this error: $ scp index.html gituser@example.de:~/www/ fatal:…
rubo77
  • 19,527
  • 31
  • 134
  • 226
1
vote
1 answer

How to open GIT bash and give clone commands using batch file

Start "" "%PROGRAMFILES%\Git\bin\sh.exe" --login cd E: git clone SshLink The above command is first opening normal cmd and then E: drive and then gitbash shell. I just want to open git-shell directly and change the directory to E: drive and give…
Pratik Kumar
  • 69
  • 1
  • 6
1
vote
1 answer

Git-receive-pack fatal

I've setup a git repository behind linux ssh server. The repository is located at /home/git/mimpi.git. Login shell of user git is /usr/bin/git-shell pub/priv ssh keys have been setup and tested on client/server side. Now I'm trying to validate the…
kalou.net
  • 446
  • 1
  • 4
  • 16
1
vote
0 answers

How do I run Anaconda through Bash application on Windows?

I installed Anaconda on Windows via the normal setup. The normal setup (to me) lets me run Anaconda from Windows' Command Prompt. Since I'm used to Linux, I tried using Anaconda from Bash Shell (on Windows as well). And I also found a way to…
Diego-MX
  • 2,279
  • 2
  • 20
  • 35
1
vote
1 answer

Interactive rebase to squash commits is hanging

git rebase -i $(HASH) is hanging .. never completes. Here's command the git rebase -i d8c0f59d5d627efb65b47264d5169e3626195839 Doing this to squash some of the commits.. Since it is interactive - it asks open an editor twice as expected. Then…
Tagar
  • 13,911
  • 6
  • 95
  • 110
1
vote
0 answers

Can I run git shell and execute command from cmd?

I would like to write a bat script that runs simultaneously Unity, visual studio and git shell. I would like to make git shell change directory (it always start at default github's repositories location), but I can't figure how. so far, I've got…
user3387666
  • 237
  • 1
  • 3
  • 9
1
vote
0 answers

Applying .gitignore to committed files for noobs

I use the Git Shell (Windows Powershell) that comes with github desktop. I have created a gitignore file and now want to ignore all the already committed files in my repository. From an answer here on stackoverflow I got this line which seems to…
Xam Eseerts
  • 367
  • 3
  • 19