Link to home
Start Free TrialLog in
Avatar of nicedone
nicedone

asked on

while using git , i want to neglect some files at git to track which prevents me making fast pulls, and forces me to stash, how do i avoid this?

Hi,

i am new to version control system git, and source tree... i want to ask 2 issues,

in git bash, command prompt , any time i try to make a pull it asks for username and password , how do i disable this and avoid asking each time for passwords ?

second question is whenever i make changes to my code and pull changes ,it gets an error sayying that there are changes should be removed or stashed etc.. so these are either configuration files or dll files which i dont want to commit and change the contents but it forces me to stash them before i can make a pull. how do i avoid this?

thank you
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

Question 1: is the remote you are pulling from registered in the git profile? check with "git config -l"

Not sure if you are using Git from windows or linux.
From windows, you probably have "git gui" in addition to "git bash" (try typing "git gui" from bash)


Question 2: you need to establish some "clean" reference situation so that all dlls, config, etc are either synced or ignored
use the file .gitignore at the root of your project to define which files or directories should be ignored by the tracking system

(To easily ignore files, I personally use TortoiseGit in addition to git bash/ git gui. Be careful though: Do NOT use Tortoise to push, it badly handles conflicts)
Avatar of nicedone
nicedone

ASKER

Hi,

For question  1:   Yes it is registered in the git profile when i hit git config -l ,my profile as well as all the repository information has appeared,

i also typed git gui ,i guess this is an interface for git bash ? but i found soucetree way more easy and more functions available on the interface somehow?

For second question : I make a change to a config file, but i dont want to commit this change ,i dont want to push my config change to other developers but on the side i want to run this file on my own desired settings only so in that case ,ignore would work but then it will affect every one , so the file will be ignored in all system which i would not desire?

how can i resolve this ? thanks again
ASKER CERTIFIED SOLUTION
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial