Score:0

how can i 'git fetch' in one line?

cn flag

i hope to use git fetch in one line command because it's so annoying to enter my account and access token... so i used alias like this.

$ alias fetch='cd ~/project; git fetch < ~/gitAccount'
$ fetch
Username for 'https://github.com': 
Password for 'https://@github.com': 

but this command also asked my account and access token although i used stdin < and gitAccount looks like this

$ cat ~/gitAccount
(myaccount)
(my access token)
muru avatar
us flag
Why aren't you using SSH keys instead?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.