65 questions
0
votes
0
answers
650
views
mkdir error : can not create directory ; file exists gitbash
#Please help me if you can
I am working on a project where I need to run a program (script file) from github into git bash terminal. Whenever I tried to run the program, it shows mkdir error, says : ...
0
votes
1
answer
1k
views
Converting .cda to .mp3 in a bash script while keeping original name
I am trying to write a shell script that takes files from a cd drive and moves them onto an external USB drive. I am running it on windows 11 in the git shell for windows.
Part of the script is to ...
0
votes
1
answer
2k
views
Git error (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 ...
1
vote
1
answer
2k
views
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 ...
1
vote
1
answer
318
views
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....
0
votes
1
answer
72
views
how to invoke javac from windows git shell/gnu makefile
I was working home office with my linux box,
was sure to write portable code.
Used shell and gnumake and compiled java through
javac -Xlint:deprecation -Xlint:unchecked --module-path libs/...
1
vote
1
answer
840
views
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 ...
-1
votes
1
answer
97
views
How do I get branch created timestamp with PHP?
I want to get created Git branch (hotfix / feature) timestamp with shell_exec.
I tried below,
shell_exec("git show --summary `git merge-base your_branch master`");
But it showing null.
Does anyone ...
1
vote
1
answer
425
views
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 ...
4
votes
1
answer
12k
views
GIT log command to extract pull request titles
I have a huge repository which has multiple folders inside it. Each of these folders is a separate application. Below is a sample of the repo structure:
myGitRepo/
A/
B/
C/
.git
I have been ...
1
vote
0
answers
1k
views
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 ...
0
votes
1
answer
57
views
Recover .git file while the local repository is the updated one
A year ago I opened a Bitbucket account and used it to follow versions of a local folder (on my personal laptop).
Since then my laptop "died" and I bought a new one. My files were backed up on a Mega ...
5
votes
5
answers
47k
views
Why I always Got Error "Push to origin/master was rejected"?
EDIT: one of the things should be aware of if you are using git bash is that BETTER TO KEEP AUTOCRLF FALSE
git config --global core.autocrlf false
=====================================================...
19
votes
3
answers
4k
views
VSCode automatically opens Git shell in terminal - how to disable it?
Since last VSCode version there was a popup asking me if I want to allow Git to open. Well I allowed this and now every time I try to open the integrated terminal the Git Shell opens externally and ...
0
votes
1
answer
431
views
Git alias parse message [duplicate]
I'm trying to make an alias for adding my changes, and committing them after. The commit message must be prefixed with the branch name. The message should look something like:
"[BRANCH-123] Message ...
6
votes
2
answers
9k
views
Add files to .gitignore directly from git shell
I'm trying to add a specific file to .gitignore directly from git shell. File to ignore is token.mat
If I type:
touch .gitignore
and then manually open .gitignore with a text editor and add
token....
0
votes
0
answers
351
views
Git command: "WARNING: Could not find ssh-agent" Issue persist
The problem occured after:
When installed the Jekyll SEO Plugin with bundle install
installing GEM jekyll-sitemap 0.11.0
When added a GEMfile in source file C:\Users\User\Documents\GitHub\PROJECT
...
3
votes
1
answer
12k
views
How to install Git Shell for Windows?
My research led me to install GitHub Desktop (for Windows), as it seemed like Git Shell would be installed at the same time. However, I got Git Bash - not Git Shell.
I need Git Shell for an ...
3
votes
1
answer
1k
views
Configuring git client for multiple git servers
I need to connect to multiple Git servers with different credentials for my work. I have my personal repository [email protected], my office work repository [email protected] and my customer ...
13
votes
2
answers
20k
views
Automatic display of git status in Linux bash
I started working with git in a Windows system. I used the Git Shell that comes with Git Desktop. This commandline tool always displays the branch you are currently in and a short, colored form of git ...
0
votes
1
answer
4k
views
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 ...
0
votes
1
answer
1k
views
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): ....
2
votes
1
answer
219
views
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 ...
41
votes
1
answer
12k
views
Update powershell keyboard bindings to be emacs style like bash shell
I'm fairly familiar with the default bash shell shortcuts (emacs style). For example, if I want to move my cursor forward by a word I would press Alt+F (same as you would in emacs). I can get to the ...
1
vote
1
answer
2k
views
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 - ...
1
vote
0
answers
251
views
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 ...
3
votes
1
answer
5k
views
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> ...
-1
votes
1
answer
3k
views
How to recover replaced files in local Git repository after pull request?
Originally on my Github are some outdated styles.css and JavaScript files and others.
I was working on my project last night but didn't push it to Github or back it up. It was just saved in my local ...
3
votes
0
answers
2k
views
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 ...
1
vote
0
answers
88
views
Applying .gitignore to committed files for noobs [duplicate]
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 ...
0
votes
1
answer
399
views
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 $...
1
vote
1
answer
775
views
Git Bash or Git Shell , which is better for Windows?
I'm learning about git form a video tutorial that uses git bash and i have downloaded GitHub for windows along git shell.which is better to use in windows and is there any differences in command lines ...
0
votes
1
answer
587
views
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 ...
-1
votes
1
answer
467
views
How to change head location to another folder?
My master branch is currently syncing with a local folder W:\folder2.
I'd like my master branch to sync with local folder W:\folder1 instead.
How can I do this?
I was playing around, while ...
3
votes
1
answer
2k
views
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:...
30
votes
2
answers
10k
views
Git shell prompts for password in an OpenSSH popup window
I don't know why, recently git shell asks me for credentials in an old-fashioned OpenSSH window (by the way, I use a https connection) instead of just prompting in the console.
That prevents me to ...
0
votes
0
answers
178
views
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 ...
1
vote
1
answer
2k
views
Failed to add the host to the list of known hosts - cloning a Bitbucket repo via Git-Shell in Smartgit
I'm using Smartgit v7.1 on Windows 10; I open the Git-shell in Smartgit and ran this command (git fetch --all) to clone a repo on Bitbucket server:
But I get the following error:
$ git fetch --all
...
0
votes
1
answer
594
views
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@...
1
vote
1
answer
3k
views
Couldn't open Git Shell in Windows 10! How to open Posh-Git?
Very new to Git Hub and Git Shell. I have installed GitHub using GitHubSetup.exe from https://desktop.github.com/. It created shortcuts for GitHub and Git Shell on my desktop and I am able to clone my ...
1
vote
2
answers
12k
views
GitHub Desktop / Git Shell: SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
Since this morning, when I try to sync from GitHub Desktop after creating a commit, I sometimes get the message:
When I try to push the commit in Git Shell, I get:
SSL read: error:00000000:lib(0):...
0
votes
2
answers
314
views
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 ...
1
vote
1
answer
2k
views
committed without git pull, not pushed due to conflict
I am using netbeans to pull/commit/push to git. I have accidentally make commit before pull request and now it's asking me Rebase/Merge. Either of option gives me error. I tried with following links ...
1
vote
2
answers
2k
views
Why does ls work in GitShell, but ls -a or ls -la not work?
I started using GitShell on my Windows 7 computer in order to try to get a script to work properly. When I type ls into the shell, it works fine and displays the file. When I type ls -a, or ls -la it ...
1
vote
1
answer
4k
views
Git Shell Ruby Bundler error parsing 'Gemfile' : Undefined local variable or method '??g'
I've installed Ruby 2.2.2 (x64) via the Windows installer.
Then from the GitHub for Windows Git Bash Shell, installed Bundler via gem install bundler.
In my site repository I've created a file ...
5
votes
1
answer
1k
views
GitHub: Search all branches/versions for string?
Is there a way to search all branches/all their versions for some string? Essentially the equivalent of doing ctrl+shift+f to search the entire solution...but for all versions and branches?
Longshot, ...
0
votes
1
answer
908
views
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 ...
1
vote
1
answer
512
views
Gitlab 7.8.4 unable to push with SSH or HTTPS
Our setup:
Gitlab CE
Gitlab 7.8.4
Git-shell: 2.5.4
Gitlab API: v3
Ruby: 2.1.5p273
Rails: 4.1.1
This is test is on a private repository owned by the same user that is trying to push to it (user is ...
4
votes
2
answers
2k
views
Logging out or deleting credentials from git shell
How do I remove my credentials from git shell?
I am on a shared computer (Windows) that has remembered my git login details. I have tried closing git shell but when I reopen it I am still logged in (...
1
vote
1
answer
1k
views
undo git init when "rm -r .git" doesn't work, Windows
I am trying to undo a "git init" command in github shell on Windows 8.1.
When I write
rm -r .git
it says:
rm : Cannot remove item : You do not have sufficient access rights to perfoem this ...