Server :: Git Push Origin Doesn't Update The Remote Repository Immediately
Jun 26, 2009
I set up a git repository on the live site of my website using git init. Then I created the same repo on my local machine using git clone command. Then I made a few changes and committed them to on my local repository. Then I tried to use git push origin alongside the ssh path to my repository on the remote machine to update my live website. However, I noticed that git-push only changes the head of my git repository on the remote machine and it doesn't change any file.
In order to update my remote repository I have to issue the following command after I use git-push.
PHP Code:
git reset --hard HEAD
This is a two-step process for committing changes to the live site. I was wondering if it's possible to merge these two steps in one to make life a little bit easier?
Note that, I'm the only one working on this project (sometimes from my laptop, sometimes from my desktop), so I trust all the commits.
I've made a terrible mistake that I changed files in /etc/yum.repo.d and /etc/yum.conf.Now I can't get update by yum update, saying that ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again. Now I'd like to reset everything to default.What can I do now?
Well since tonight, after the upgrade to the latest current today, it was about a month I didn't upgrade, I cannot "git push" from my windows workstation (through msysgit shell)... I can pull, at least it tells me I'm up to date, but it keeps blocked on the 'push' command, returning only after a long timeout:
Recently i was able to setup a server which can work as a local yum repocitory in my envornment.However when i tried to update the packages in my repocitory using rsync from mirrors.kernel.org its giving a timeout error. The error i am getting is "rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8]" I am having repocitory for centos 4.4 and 5.2(both 32 and 64 bit versions)
Error Type: <class 'yum.Errors.RepoError'> Error Value: Error getting repository data for installed, repository not found File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3125, in <module> main() File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3122, in main code....
It mentioned bug report but I don't know where that is. I'll try later.
I have a dual boot setup with two hard drives. Windows 7 is running on my primary drive with Ubuntu 10.04 on the secondary drive. I installed GRUB 2 to the secondary hard drive, and I'm booting from that. Everything seems to be working well with one problem. Every time I shut down from Ubuntu and tell it to load Windows (it doesn't matter if it's a reboot or power off/on), Windows locks up during its boot. If I power the laptop off and back on, I can select and load into Windows just fine. It just takes two attempts EVERY time.
I'm running an up-to-date Lucid Lynx but now getting irritated by a bug or problem (I'm not sure whether it's a bug) in Gnome-panels. The problem is whenever I add a new panel in Gnome Desktop, the new panel doesn't appears on screen and needs to be re-logon to appear. It seems a known issue when I checked for the same at Launchpad, but it existed in betas.
I found this trouble since I have made a clean install of Lucid but thought it'll be fixed in any of the updates, but it didn't solved even after the most recent update I made this morning. I wanted to report this bug but didn't knew how to file bug for gnome-panels as there's no option like 'Report a problem' for gnome panels.
I've noticed that Synaptic shows VLC 1.0.6 as the latest version of VLC. Except this is not true and 1.0.6 is way out of date. Version 1.0.6 does not even have a REPEAT icon button for the control panel. But newer versions do. Running Windows I can download VLC version 1.1.5 and make use of a REPEAT icon.Is there a way to update the repository? Or a way to tell Ubuntu developers that the VLC repository is way out of date and needs updating? I'm running 10.04 LTS--I thought this was supposed to deliver longterm updates?
I have connected to the VPN server successfully but my IP address still shows up as my normal WAN rather than the server's IP address.hat the push settings I have to configure on the server?Here is my server.conf:Quote:
After it was updated a few days ago, VLC stopped working. It just quits immediately without doing anything, no matter what command line options you give it.
" Mark the start of the text with "v", "V" or CTRL-V. The character under the cursor will be used as the start.""With CTRL-V (blockwise Visual mode) the highlighted text will be a rectanglebetween start position and the cursor."I can mark the start with "v" or "V".But it doesn't work when I push ctrl+V.
I created a bash script which when executed as a desktop application modifies its own application icon. This is done my altering the Icon= line in the application's .desktop file.
Here is a gif of the application in action: [URL] ..... As you can tell, there is an approximately two second delay before the icon changes. I was wondering if there was a way of making the icon change immediately.
For completeness sake here is the script I am using:
if [ ! -z $(grep "Icon=$PLAY_ICON" $LAUNCHER) ]; then   sed -i -e "s/Icon=$PLAY_ICON/Icon=$PAUSE_ICON/g" $LAUNCHER elif [ ! -z $(grep "Icon=$PAUSE_ICON" $LAUNCHER) ]; then   sed -i -e "s/Icon=$PAUSE_ICON/Icon=$PLAY_ICON/g" $LAUNCHER fi
I've been using Claws for a long time and I like its filtering capability, however this app is hanging,hogging 100% of the cpu time. the last version was similar, but the latest version hangs after an hour.I've run it in debug mode, and with strace but nothing stands out I'm suspecting that its the way it looks for a pipe used by pulseaudio, which is not installed. It doesn't hang immediately after trying to open the pipe but within a few minutes. I'm not getting any success from the claws group, so time to look for another mail applicationI'm open to suggestions, I've tried Tbird and found the filtering lacking.there is a catch, I need to be able to import the mail from Claws-mail into it.
I am running CentOS 5.4 and Postfix. So when I start Postfix server than immediately maillog is starting to grow. And the first lines that I see in it are:
[Code]...
Server is already in several blacklists and I desperately need to do something.
Edit: The url works if I leave out "repomd.xml" at the end; and the repomd.xml is exactly in that folder? i have downloaded the file but don't know how to use it.
I've configured postfix on my linux server. For the most part, I got everything working (IMAP, apache, etc) but for some reason, I can't get postfix to work remotely. Postfix works locally to send mail. E.g. when I telnet locally to port 25. However, when I try to telnet from outside, the connection closes almost immediately. I've looked at various configuration options and tuning enhancements but found nothing helpful. Here is my config:
Code:
main.cf:
#See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default
i am integrated ADS with squid and its working fine. In squid server end i have used "net ads password" to update new password for the user and it successfully updated. Issue is update not doing immediately it takes long time to update the password , even i restarted the smb and winbind services. I want to updated the password immediately in the ads server. is this possible ?
I have a local git repository that pushes to a remote repository. That remote repository moved to a new server. How do I make "git push" and "git pull" push/pull to/from the new repo?
I am trying to run VNC server on a standard OpenSUSE 11.2 Gnome Desktop installation.I have done this succesfully with SLES for sometime, however, my experience with OpenSUSE 11.2 is that it doesn't work out of the box!!
I am using XP Pro VNC viewer Free Edition 4.1.2 to connect.
I have removed "localhost" from the # special IPv6 addresses in hosts. This fixes the black screen issue for me. All appears well until I disconnect and retry the connection after 5 minutes or so. Then VNC client makes the connection and then immediately disconnects. It's a no go from then on. If I reboot OpenSUSE 11.2 it works again but then reconnect fails again after the same period of time.
I am trying NX now as an alternative. However, I would much prefer to use VNC.
I recently turned on query logging on our name server and immediately saw repeated queries for . (dot). I've not seen this before. It looks like a really sloppy DOS. What would this return if my NS was misconfigured?
May 13 18:11:41.710 queries: info: client 91.202.63.129#56089: query: . IN NS May 13 18:11:42.083 queries: info: client 91.202.63.129#62826: query: . IN NS May 13 18:11:42.788 queries: info: client 91.202.63.129#13620: query: . IN NS
I have a mysql server which "goes down" every day at 9, because the debian-sys-maint user needs to run a table check, for no particular reason.
I assume it's a cron-job, but I can't find anything related to this. There's the mysqlautobackup script, but that runs at 4 in the morning, which is expected and perfectly acceptable.
I can't get KPackageKit run successfully even once. Every-time I get the same message that can't correct the software origin as following:
While I can update the software through zypper in the terminal window, I also get a warning message to say some package will NOT be update as following :
I already implement the one-click solution to thread:Multi-media and Restricted Format Installation Guide, except that I got another warning message when I click to switch system packages to the version on packman repository as following:
Another question is every time I click the accept button of the YaST2 window, it will install the packages and quit directly and never give any confirmation of the result. Is this normal?
The last question is when I use Amarok or qmmp to play music which be shared via Samba on my homeserver, the system always copy the music file to the local folder,/var/tmp, and then can begin to play rather than play it immediately by stream. Is this also normal?
I've been requested to modify a perl backup script we use which mounts a networked NAS machine. The actual mount command is called inside a system() command. In testing, I can do a test of the return value, so I'm able to tell whether or not I've mounted properly, but I can't make heads or tails out of the return on deliberate errors. (Such as mounting a non-existent box.) I'm displaying the returned value, which is 256 in my tests. The man page for mount listed error messages with values from 1 to 64, but no higher. Am I drawing this error value from the system command somehow? And what would be the best way to determine what this error means?
I upgrade fedora 10 to Fedora 11. Up-gradation is successful but after upgrade I cannot use fedora 10 repo. If I want install any fedora 10 package it gives error. Fedora 11 packages I can update fine.
Error : Error Downloading Packages: <class 'yum.metalink.MetaLinkRepoErrorParseFail'>File /var/cache/yum/fedora/metalink.xml does not exist<traceback object at 0x1127f554>
The systems says that it cannot automatically update, so I have to do an Auo�tomatically update. Error details shows:
Code:
PackageKit Error repo-not-available: Failed to download /repodata/repomd.xml from [URL] I press "Start Yast and install updated manually" buttton Enter my root password
And a Window appears displaying:
Code:
ERROR Download Failed: Failed to download /repodata/repomd.xml from http://packman.iu-bremen.de/suse/11.2. History - [AbstractCommand cc:224] URI=http://packman.iu-bremen/suse/11.2/repodata/repomd.xml
If I try to do a software update, I get an error message. It is:
Error Type: <class 'yum.Errors.RepoError'> Error Value: Error getting repository data for installed, repository not found File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3125, in <module> main() File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3122, in main backend.dispatcher(sys.argv[1:]) File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 710, in dispatcher self.dispatch_command(args[0], args[1:]) File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 657, in dispatch_command self.update_packages(only_trusted, package_ids) File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1948, in update_packages signed = self._is_package_repo_signed(pkg) File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1437, in _is_package_repo_signed repo = self.yumbase.repos.getRepo(pkg.repoid) File : /usr/lib/python2.6/site-packages/yum/repos.py, line 121, in getRepo 'Error getting repository data for $s, repository not found' $ (repoid)
Why I can't update? Everything else works fine compiz, codecs, flash, java etc.