$ ssh user@test.com -A
Ref: http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/ssh.1
$ ssh user@test.com -A
Ref: http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/ssh.1
Handy snippet to run, to delete all but the current branch:
$ git branch | xargs git branch -D
$ git remote prune origin
If 2-factor-authentication is enabled, an access token is needed in the place of password. Create one according to the steps here with the access for:
When you run git submodule update --remote
in a container repo, you might notice that it says:
Submodule funny_module bf722acd..02dc481d (rewind):
< That awful bugfix
Why the rewind?!
Continue readingIf the base branch for your repository is not the default master
, you might have encountered this bizarre Pull Request problem when you try to deploy from base branch onto master
:
I found this link in one of StackOverflow answers–very useful in understanding how git works.
What’s the use of git submodules? It’s mostly useful when you want to work on the code in both the main repo and the sub repo at the same time. Otherwise, a normal dependency management system would suffice.
To have submodules safely set up so that you run into walls less often, do the following:
Continue readinggit push
on master
branchyarn run build
or any other scripts)I’m on DigitalOcean’s server, but this works on any self hosted servers.
Continue readingTo save the uncommitted changes:
# Either without a name $ git stash # Or with a stash name: $ git stash save funny-stash