git usage question: if you use `git pull` and `git push`, how do you usually use them?

possible answers include:

- just run `git push` and `git pull` with no arguments (other than --rebase or --ff-only etc)
- always specify remote/branch with `git push origin main` and `git pull origin main`
- some combination of the above
- something else?

(please only reply if you use both `git pull` and `git push`, I'm very aware of team "I never use `git pull`" :) )

might add some follow up polls to this

Follow

@b0rk for me it's usually like this:

First I do "git pull" (without arguments) to get the latest stuff.

Then I make local changes and test them and mess around with the code in other ways, locally.

Then, before doing commit, I do "git pull" again (again without arguments). This is because I want to avoid trouble as much as possible in case someone else made changes in the meantime.

Then I do "git add" and "git commit" a few times.

Then I do "git push" (without arguments)

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml