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
0
votes
1 answer

Github - how to revert a pull from wrong branch

I accidentally made a pull from a different branch, which shifted the HEAD saying: HEAD is now at 7c0208906 Merge remote-tracking branch 'refs/remotes/origin/lorem-ipsum' Now, it keeps pulling from the origin/lorem-ipsum instead of…
Abhi
  • 350
  • 1
  • 4
  • 13
0
votes
1 answer

Not a git repository (or any of the parent directories): .git

I'm using GitHub desktop and I have no problem until I try to make a new pull request or sync a branch. When I write git stage I receive: Not a git repository (or any of the parent directories): .git But I have the git folder in the repository.…
joaquin
  • 1
  • 2
0
votes
1 answer

git shell error in Windows

Split-Path : 找不到驱动器。名为“.C”的驱动器不存在。 所在位置 C:\Users\Administrator\AppData\Local\GitHub\PoshGit_a2be688889e1b24632e83adccd9b2a44b91d655b\profile.example.p s1:1 字符: 16 + Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent) + …
叶小白
  • 49
  • 1
  • 1
  • 9
0
votes
1 answer

Correct url for windows to access my own git server

So i've got my git server setup on AWS, it worked perfectly fine on my mac and ubuntu, but i got trouble connecting it using windows. Here is the steps and the error i got. Steps: 1. generate keys using "ssh-keygen -t rsa -b 4096" 2. put the key…
libra
  • 673
  • 1
  • 10
  • 30
0
votes
0 answers

git-shell / git over SSH... telling remote server to perform a clone to itself

So I have SSH GIT access to a server of mine (which is using git-shell) My question is, can I instruct that server (lets call it server A) to clone a repo remote from it (on a different server, lets call that server B) onto itself? So... have server…
mrmrw
  • 120
  • 9
0
votes
1 answer

Overwritten Github key?

I am new to Github so this may seem trivial. I was supposed to create an ssh key for my Github account. I did that by typing the following command into Git Shell: ssh-keygen -t rsa -C "rishikesh.330@gmail.com" Prior to this, I had deleted my ssh…
lebowski
  • 1,031
  • 2
  • 20
  • 37
0
votes
2 answers

Force git-shell username to overwrite given username

I have a bare git repository sitting on a server and a user with git-shell for ssh communication. The problem is that I can't force the user name and user email when I push my commits on the server with that user. I set up in the user's home…
user494599
0
votes
1 answer

Doing Git pull through CYGWIN

I was using Git shell for pulling data from GIT through (GIT pull) command. But I am having some problems while pulling the data because of showing the message "as file too long". while creating another separate clone I get the following error…
Deb
  • 49
  • 7
0
votes
1 answer

Why can the Git Shell use SSH with an HTTP remote origin URL?

I have read Configuring Git over SSH to login once. Muein Muzamil's answer says that to use SSH, we must configure as follows: remote.origin.url=git@github.com:your_username/your_project.git Which is to say, that in a normal Windows PowerShell, SSH…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
0
votes
1 answer

.bashrc and .profile errors with 'sh.exe": ÿþe: command not found' on git-shell start windows 7?

I've just installed git on a newly imaged laptop with windows 7 and I get this message when I open git shell: Welcome to Git (version 1.9.4-preview20140611) Run 'git help git' to display the help index. Run 'git help ' to display help for…
Helder Roem
  • 474
  • 5
  • 13
0
votes
1 answer

Pull from Github using Git Shell on Windows

I'm a newbie, so this question might sound really stupid, but what's the command to pull from Git Hub using Git Shell on Windows? Thanks a lot. I did some research but I don't really understand. This is what I typed in Git Shell: git pull…
HoneyWine
  • 177
  • 1
  • 4
  • 18
0
votes
2 answers

Git Hub: recover deleted files

I accidentally deleted files on my local machine and in git shell when I do a git status I see those files marked as deleted, how would I recover those files back to my local machine?
0
votes
1 answer

how does github mark the status color of your branch

in git shell I regularly see sthis myProject $ [branch1] where 'branch1' is blue whenever in sync, or green if its not. but what does this color indicator mean, what does this compare to? and how to change this to a different fork if its comparing…
user2167582
  • 5,986
  • 13
  • 64
  • 121
0
votes
1 answer

How can I edit/remove the " u= " marker in git-sh

Using rtomayko's git-sh, I've noticed a marker that I haven't seen in the examples. u= (which I imagine stands for upstream) tells me how many commits I've committed locally, but have not pushed to the remote repo. I'd like to update it's styling,…
Salar
  • 861
  • 9
  • 13
0
votes
2 answers

I changed /etc/passwd to git-shell and changed it back, but now shell not working

I was following the instruction on how to set up a git server here, and I removed the ssh access from the git user by setting /etc/passwd file to /usr/bin/git-shell. Later I found out that I still want to ssh as git, so I reset it back to /bin/sh. …
garbagecollector
  • 3,731
  • 5
  • 32
  • 44