Donate to support Ukraine's independence.

11 Aug'23

Rebasing all relevant pull requests on a Github repo

If you chose rebasing as your primary git workflow strategy, it becomes important to keep your feature branches updated. Out of the box, Github offers automatic rebasing on many Dependabot pull requests. Dependabot PRs can be further rebased semi-automatically using the @dependabot rebase command issued in the comments.

For all other PRs, you need to set up a bot or a Github Action to do this automatically. One such action that could be used is peter-evans/rebase:

name: Rebase
on:
  schedule:
    - cron:  '40 7 * * *'
  workflow_dispatch:

jobs:
  rebase:
    runs-on: ubuntu-latest
    steps:
      - uses: peter-evans/rebase@v2
        with:
          # token: ${{ secrets.GH_PAT }} 
          # exclude-drafts: true …

Continue reading

Category: 

19 Feb'15

Update Git on Debian 7 to Git 2.3

Add the following repository to the sources.list:

deb http://ppa.launchpad.net/git-core/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu precise main

Now, run sudo apt-get update and get the following output:

W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A1715D88E1DF1F24

And fix it by running

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24

Now you can run

sudo apt-get install git

And afterwards verify your setup:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description …

Continue reading

Category: 

14 Jun'13

Moving from Jekyll to Octopress

Hi again. Today I can proudly say that I was productively procrastinating! As you might know, my “Deep dive into Linux” journey has just began and today it saved me at least few hours.

While cleaning up my 1TB drive residing inside my desktop to make sure that all junk is removed whereas all important files are properly backed up to the cloud, I noticed that inside my old website folder there were at least 7 backup archives which were almost identical. They were consuming a lot of space and since going to the university I’ve being actively using …

Continue reading

05 Mar'12

Git deployment

Get some inspiration here first: http://stackoverflow.com/questions/279169/deploy-a-project-using-git

If it seems to hard for you, use this example: http://ryanflorence.com/simple-git-deployment/.

There is a middle method, but I failed to implement it successfully: http://caiustheory.com/automatically-deploying-website-from-remote-git-repository

Take a look at http://www.dejaaugustine.com/2011/05/leveraging-git-as-a-full-fledged-web-development-tool/ and http://deadlytechnology.com/web-development/deploy-websites-with-git/ as well.

Continue reading

15 Feb'12

Git through http proxy

Use this command to globally configure git:

git config --global http.proxy http://10.108.4.62:8080

Continue reading

10 Feb'12

Git default remote

git branch --set-upstream master <strong>origin</strong>/master

origin - name of the default remote

Continue reading