C
C
ClownSergo2019-07-09 22:10:30
git
ClownSergo, 2019-07-09 22:10:30

How to make one account on multiple workplaces when using git?

Started writing a server application using git on my computer.
Then I uploaded my project to GitHub.
Uploaded the repository to the server.
Sometimes I make edits specifically on the server via WinSCP and then push to a remote repository on GitHub.
The problem is that in the remote repository, the commits made on the server are displayed not on my behalf, but on the default server name. How to initialize itself in this case on the server?
5d24e688b24b0263781896.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
1001001, 2019-07-09
@ClownSergo

git config --global user.name "Name"
git config --global user.email "email"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question