Git terminal online
git bash - How do I log in using the Git terminal? - Stack Overflow
github - Execute Git command online (web-based terminal/console) without using desktop software? - Stack Overflow
Should i use Gui or Terminal git?
Videos
Hello,
I would like to use GIT Web Terminal (git-terminal.js.org)
But is it official? Can i enter my credential in it?
Thank you for your help!
There's a github project allowing you to open git repository in your browser with git open command. It supports various remote repositories (not only GitHub, but also Gitlab, Bitbucket and others) and works also in cases where git remote -v returns URL in a git@... format.
It's kind of ugly, and will only work in a few cases, but I came up with a way that works for me.
$ git remote -v | awk '/origin.*push/ {print $2}' | xargs open
I then assigned that to the alias gitrm. I'm not sure if open works on anything besides OSX, though.
In the end I realized that not every remote repository has a friendly web-based frontend, so it wouldn't really make sense for git to provide a command to open them.
Just entering your user in the command line won't work for newer versions of git. To sign in to GitHub, you'll need to download GitHub CLI, then do gh auth login
Yes, just winget install --id GitHub.cli and gh auth login worked, but you have to close your terminal and re-open to try again.
https://github.com/HenzelMoras/myconfig
usding zsh shell with .zshrc which allows autocompletiion, suggestion extra using oh-my-zsh https://github.com/ohmyzsh/ohmyzsh
install if not present
sudo apt install zsh
change default shell to zsh
chsh -s $(which zsh)
install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
then edit .zshrc file u can refer my config file settings
nvim ~/.zshrc
source the file
source ~/.zshrc
tmux for multiple split panels and windows
sudo apt install tmux
then Neovim 0.5 to to make terminal editor just like an idle
u can refer my dot files for examples
There are a lot of answers online & in various stack-exchange forums that show custom functions (foo() { call git and get info } ) and then integrating into PS1 ...but so many people have done it, that now much of this has been added to git.
First, install git (of course) & bash-completion (sudo apt install git bash-completion) and add to your prompt, using the git documentation (I believe bash completion may be a prerequisite, but even if not, it's really useful):
- https://www.cyberciti.biz/faq/add-bash-auto-completion-in-ubuntu-linux/
- https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Bash