Set your username to the git remote


Some time we d't want to add SSH to github for particular app(when working with multiple github users), We can add
github user name to specific app.

git remote set-url origin https://yourusername@github.com/user/repo.git

This will ask your password when tries to git push.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s