Git repository for dotfiles...

38 views
Skip to first unread message

Scott Vargovich

unread,
Aug 31, 2019, 9:29:40 PM8/31/19
to linuxus...@googlegroups.com
Hi there,

I'm trying to set up a repo for the hidden config files because I distro hop a good bit and spend a lot of time setting dotfiles up after each install.

I'm following this tutorial:  https://www.atlassian.com/git/tutorials/dotfiles

When I get to the 'config push' command, I get this error:

<cli output>
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>
</cli output>

I'm using zsh as my shell and have substituted zshrc for bashrc and .zshrc for .bashrc.  I'm not sure why I'm getting this error.  Help please!
--
<><  Scott Vargovich  <><
------------------------------------------
OpenPGP Key ID: 29C36884
==========================
Ham Radio Call Sign: KE8CQC
==========================
GMRS Call Sign:  WQXJ287
------------------------------------------

frank

unread,
Aug 31, 2019, 11:46:59 PM8/31/19
to Linux Users Group
Assumptions:

1. you are working of "master" branch
2. you are using the default "origin"

Then

git remote add origin <remote_url>


Then to push, use

git push -u origin master

Where the -u flag informs that it is an up-stream branch.

Other things to check:

Have you SSH key correctly defined?

Can you pull from remote:

git pull <remote_url> ~/tmp/delete_me_later

- frank

venomDev

unread,
Sep 4, 2019, 7:36:21 PM9/4/19
to Linux Users Group
Do you have a remote git repository to use?

You could use a public server like gitlab or bitbucket to create a remote repository that you can name as origin.

 
Reply all
Reply to author
Forward
0 new messages