Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6598411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:20:43+00:00 2026-05-25T18:20:43+00:00

Because the trick with my .netrc file doesn’t work (even though it has correct

  • 0

Because the trick with my .netrc file doesn’t work (even though it has correct filepermissions), I modified my local .git/config to like like so:

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = https://<username>:<password>@code.google.com/p/<project>/

I immediately cloned the repo to check if the password would be still included, and it isn’t.

I also have a mirror hosted at github, if it matters at all.

So is it in any way dangerous?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:20:43+00:00Added an answer on May 25, 2026 at 6:20 pm

    So is it in any way dangerous?

    Files in your .git directory are strictly part of your local repository; they don’t get pushed to your remote repositories. So you’re safe in the sense that you’re not publishing your password on the network.

    On the other hand, any system that requires you to cache your password on your local filesystem means that someone with access to your filesystem can potentially recover your password. Unfortunately, since Google doesn’t support repository access over ssh, there’s not much you can do about this (well, you can decide to use Github exclusively, which gets you public/private key authentication which is a substantial step up in security).

    Regarding the use of the .netrc file, the Google Git FAQ says:

    I put my credentials in .netrc, so why does git still ask me for a password?

    The C git client always asks for a password if you have a username in the URL. Check your
    command line and .git/config file and make sure that your code.google.com URLs do not
    include your username (the part up to the @).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried a number of methods: A UIWebView doesn't do the trick because I've
Because Canvas3D doesn't have the ability to resize dynamically with the parent frame, I
The following example is bad, because it has code repetition. For example, if we
I am aware of the hidden iFrame trick as mentioned here (http://stackoverflow.com/questions/365777/starting-file-download-with-javascript) and in
Now this is a trick question because you cannot do this: var a =
Is there a read only property for a checkbox? Because I can still tick
Because regular expressions scare me, I'm trying to find a way to remove all
Because of the more tedious way of adding hosts to be monitored in Nagios
Because windows is case-insensitive and because SVN is case-sensitive and because VS2005 tends to
Because I run a blog aggregator website which checks a large list of RSS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.