Open in app

Sign In

Write

Sign In

عبدالرحمن خلیل
عبدالرحمن خلیل

2 Followers

Home

About

Oct 7, 2021

git-just-push?

Are you tired of git NOT just pushing your branch and instead first asking to set origin for every new branch ? Well, here is a command that can help you: git push 2>&1 >/dev/null | tail -2 | grep 'git push' | awk '{split(\$0,a,\" \"); print a[5]}' | xargs -I{} git push --set-upstream origin '{}' What this will do is first try `git push` and if there is an error it will get branch name and run git push — set-upstream origin branch-name.

Git

1 min read

Git

1 min read


Sep 10, 2021

How-To: Manually restart django development server

Here is how: 1. Script Create a bash script, let’s say, ~/restart-runserver.sh and copy-paste following code: 2. Run By running this script we can trick django development server into restarting it-self. To run: bash ~/restart-runserver.sh If you are asked to enter password every-time, you can change file permissions to avoid that. To change…

Django

1 min read

Django

1 min read

عبدالرحمن خلیل

عبدالرحمن خلیل

2 Followers

@ark4579

Following
  • Mindy Hoover

    Mindy Hoover

  • JaYoung Lee

    JaYoung Lee

  • Chris Sells

    Chris Sells

  • Hirestream

    Hirestream

  • Umer Adnan

    Umer Adnan

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech