How do I fix missing git remote details?

Some repository clones I have allow me to do this:

% git pull
% git push

But other repositories require me to type:

% git pull origin master
% git push origin master

I think I am missing something in the latter case - does anyone know what is (not) going on here? I am using the latest git version, just obviously not using it well.

Answers


If you cd into your repository directory and then open up your .git/config file in an editor.

Append this to the end of the file:

[branch "master"]
     remote = origin
     merge = refs/heads/master

This is pretty much just an alias so git knows by default to pull from origin master.


Need Your Help

iOS 8 Custom Keybaord with external bluetooth keyboard

ios ios8 ios-app-extension custom-keyboard ios8-share-extension

I now have a working iOS 8 Custom Keyboard to input Chinese, and I am looking for the possibility to use this keyboard with external bluetooth keyboard.

Errors in building a RSS XML in Windows Using Word Pad

xml windows rss wordpad

I am trying to build a XML Rss feed using Word Pad in windows. The issue I get is that it gives me this message when I attempt to view in Firefox:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.