On 16 Feb 2021 at 07:28p, Rushfan pondered and said...
You need to save the credentials for git to use. When I use github I typically use a ssh key (and put the public one in github) and use the git:// urls, it seems easier to me and less likely needing to save git https credentials which are different on each platform.
I'd gone with this setting
git config --global credential.helper store
And had a token set up already with github that I used as the password when I passed my username..
The issue of getting in to push without a password seems to be OK for me - phew.
Can you try:
git push
git push
Everything up-to-date
So it liked that.
git push [remote name | URL] [branch name].
When you did the -u, you set the default branch and you likely have one remote, so you don't need to list it.
You can do:
git remote -v
that'll list the remotes you have. Likely it's called origin (which is default). You could rename it to infopack, but it doesn't need to be.
avon@orac:/hub/fsxnet/infopack$ git remote -v
origin
https://github.com/fsxnet/infopack.git (fetch)
origin
https://github.com/fsxnet/infopack.git (push)
is what I see, is that OK? I suspect yes. If I don't need to rename anything I'll leave it alone. Not sure when I would need to? I'm not a daily git user (yet :))
[time passes]
I made a small change to the infopack files then did the following..and it
all seemed to work. The bit that has me stumped is why is it behaving now
when last night it was unhappy with my name and email when I added the commit -m "comments" line..
Here's what just happened (seemingly ok)
avon@orac:/hub/fsxnet/infopack$ git add --all
avon@orac:/hub/fsxnet/infopack$ git commit -m "updates for infopack files" [master e36d525] updates for infopack files
1 file changed, 1 insertion(+), 1 deletion(-)
avon@orac:/hub/fsxnet/infopack$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 298 bytes | 298.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To
https://github.com/fsxnet/infopack.git
20d9f58..e36d525 master -> master
Perhaps I put it down to 'what a difference a day makes' :) ??
--- Mystic BBS v1.12 A46 2020/08/26 (Windows/32)
* Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)