- Create a mirror repo for sync
git clone --mirror[local_repo_name]
git remote add --mirror=fetch upstream
- Sync
git fetch --all -v --progress
git push --mirror -v --progress origin
- Auto Sync
Job done. Hope simple python script would come soon.
git clone --mirror[local_repo_name]
git remote add --mirror=fetch upstream
git fetch --all -v --progress
git push --mirror -v --progress origin
Since start using GIT as version control system, I use put all my
repos on BitBucket. I love the unlimited private repos from them. But
no command line tools for it is really painful for Linux users. Then I
start looking for good Python API for it to write simple script to
create/clone/list repos. But my Python knowledge make it a hard task
for me to do a good script.
Today just before I try to add "Description" to create repo, I found
the API "python-bitbucket-api" with Python script already. Try it out,
it is really good. Just some small issues like install and argument
parsing. Now everything works fine for me. Hope new features will
coming from original author(s).
If anyone is using BitBucket and looking for a command line tool for
it, you can give it a try: hg clone
https://enchanter@bitbucket.org/enchanter/python-bitbucket-api
Start the learn how to use "CLOCK" in org-mode. I love it. You can do
the clock in and clock out. Then you got your simple report on how
much time you spent on your little tasks or the whole project. That's
so easy and wonderful.
After 3 days, I figure out that I spend 2.05 hours on my current
project. Hope me boss would never read this post. The "CLOCK" will be
part of my self management tool from now.
I'm just too excited to post this because my pull request is
merged. Actually that is very simple change of a Python library and
what I have done is just changed then way to import the libraries to
make it support Python3. But it is the first time I try to contribute.
Really hope this could happened 20+ years ago when I was still
young. But even to late, right?
BTW, also remember a reply from a forum: "Change request? Why not just
change the code and send a PULL REQUEST?"
If you never do that, try it, simple change can be merged :-).
Have post anything for about 2 years. And now I am learning Emacs org-mode
That's really a wonderful tool I have ever seen before. Now try everything
with org-mode.
Here is the first post from it. Hope I can restart to post something useful
soon.
My blog will focus on what I am learning and plan to learn:
Hope will become notes and progress tracking.