Commit a46048db1ccd55da41e29c36573ad93e98aa046f

Fix push bash function for branches with slashes
Author: xaizek
Author date (UTC): 2021-11-13 13:34
Committer name: xaizek
Committer date (UTC): 2021-11-13 13:34
Parent(s): 64dc033040f8c321d41142ebb139a4af3d9a2109
Signing key: 99DC5E4DB05F6BE2
Tree: 4dc626d670cc85e1f2d10ad100bc08fcfb625527
File Lines added Lines deleted
bashrc 2 1
File bashrc changed (mode: 100644) (index 6c24000..732140d)
... ... function rrebase()
303 303 # push current branch to a remote (origin by default) # push current branch to a remote (origin by default)
304 304 function push() function push()
305 305 { {
306 local current="$(basename $(git rev-parse --symbolic-full-name HEAD))"
306 local current="$(git rev-parse --symbolic-full-name HEAD)"
307 current="${current#*/*/}"
307 308
308 309 if [ "$#" -eq "0" ]; then if [ "$#" -eq "0" ]; then
309 310 local remote='origin' local remote='origin'
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dotfiles

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dotfiles

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master