Skip to main content

All Questions

Tagged with
1 vote
1 answer
116 views

Using sed to edit filepath variable

I am trying to use the sed command to edit a value in the .git/config file. When running the remote origin command, the config file creates the line of text like this": url = https://github.com/...
Abbatrombone's user avatar
0 votes
1 answer
28 views

Dealing with whitespaces in file names after git grep -l

I'm trying to run the script below and I'm struggling with pathspec error when the filename has whitespaces. I have already read some other posts around here, but since I am not an expert I was not ...
O Pardal's user avatar
  • 103
1 vote
1 answer
54 views

git - using gitconfig to switch repository host address

So right now I have some alias in my ~/.ssh/config: Host github_company_a HostName github.com Host github_company_b HostName github.com and I use the alias directly: git clone git@...
Prometheus's user avatar
0 votes
1 answer
75 views

I'm getting on gitbash a warning WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! for github

When I try to clone a git repository in gitbash on Windows I get following error: $ ssh -T [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST ...
Asterios Raptis's user avatar
0 votes
1 answer
94 views

Changed color settings of ble.sh bash terminal are not applied

I installed the ble.sh from this git repository https://github.com/akinomyoga/ble.sh.git, but i want to customize the color settings with ble-face commands. What happens is that, I changed the color ...
Vitor Martins's user avatar
1 vote
1 answer
111 views

git is unable to properly determine the terminal width (git-bash, windows)

As you can see in the screenshot, the terminal is currently 100 characters wide, and both methods of detecting such that I'm aware of are returning the correct value. Despite this, unless I explicitly ...
davidmwhynot's user avatar
0 votes
1 answer
111 views

Overwrite bash alias for git pull to include --recurse-submodules

Neither functions seem to affect anything for me? Is anyone able to get them working and show me what I'm doing wrong? I'm trying to override git pull to include recursive submodules whilst keeping ...
P1000's user avatar
  • 1
2 votes
1 answer
1k views

Windows Bash Terminal takes over 10 seconds to load

When starting up Git Bash in a Windows terminal or VScode terminal, the screen is blank for 10 - 15 seconds before it initializes to having a working directory and cursor. After init, it runs fine. ...
skwidflowz's user avatar
0 votes
1 answer
6k views

How to get out of git in the bash terminal's command line

My terminal's logline (is that the right term?) says I'm in git. How do I exit git?:
Al C's user avatar
  • 217
1 vote
1 answer
176 views

Force push current branch to origin if not master

I have a git alias for force pushing current branch: [alias] fp = "!git push -f origin \"$(git rev-parse --abbrev-ref HEAD)\"" Which basically maps fp to a command that does a ...
James Wierzba's user avatar
0 votes
0 answers
40 views

How to pass Ctrl+R to the git bash terminal in Visual Studio Code? [duplicate]

Right now while in git bash terminal inside VS Code if I press Ctrl+R nothing happened - VS Code awaits for the second key of chord: Is it possible to instruct VS Code to pass the Ctrl+R key ...
mark's user avatar
  • 866
0 votes
1 answer
313 views

Tortoise Git not using id_rsa

I use Tortoise Git on Windows 10. When I push it asks me password although I do have %userprofile%\.ssh\id_rsa file. I also tried to use git from command line (Git bash). If I google I get instructed ...
user1787194's user avatar
0 votes
2 answers
4k views

Setting environment variables in bash script doesn't work?

If I run this on the command line, it will make the commit be at the specified date: THE_TIME='2022-01-01T22:50:12 -0700' GIT_AUTHOR_DATE=$THE_TIME GIT_COMMITTER_DATE=$THE_TIME git commit -am 'commit' ...
Attribute's user avatar
0 votes
2 answers
427 views

Git Log of a particular file from a particular commit only

git log --graph --decorate --pretty=oneline --abbrev-commit --patch --full-history --follow -- "${FileP}" prints * b8800d8 (HEAD -> master, origin/master, origin/HEAD) chore(export): ...
Porcupine's user avatar
  • 473
0 votes
1 answer
1k views

Starting ssh-agent from a script for use in multiple scripts (invoked by git)

I have some homepages in a git repository each. They are built by Jekyll. When I change something, I use git's pre-push hook to let Jekyll build the page and sync it with my HTTP server via rsync. ...
Tobias Leupold's user avatar

15 30 50 per page
1
2 3 4 5
18