Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

2023-08-30

git svn clone Unable to connect to a repository at URL Error running context: An error occurred during SSL communication at mingw64/share/perl5/Git/SVN.pm line 148


Hit this issue with version: PortableGit-2.42.0-64-bit 



Working on the issue.





But found no issue with:
PortableGit-2.37.3-64-bit



Revert to use PortableGit-2.37.3-64-bit for svn to git migration


2023-08-19

git svn clone error An error occurred during SSL communication

 

"git svn clone" APR does not understand this error code: ra_serf: An error occurred during SSL communication at ...\git-svn line 392








2023-08-14

2023-08-11

GitLab Community Edition 12.10.14 Full backup

 


Version: GitLab Community Edition 12.10.14

Full backup failed with command: gitlab-rake gitlab:backup:create



Version: GitLab Community Edition 12.10.14

Full backup successful with command: gitlab-backup create



2023-08-10

GitLab wiki page title with special character issue.


Finding:
  1. GitLab Community Edition 10.8.7 able to show wiki Page content of "Noob version)"


Solutions:

  1. Upgrade to GitLab that can edit the page, but I didn't log down which version.
  2. Open the Wiki Page, and remove those characters.
  3. Then you can clone the wiki page to your local.



Background

GitLab Community Edition 10.1.0 5a695c4

Users created some wiki pages with title of below:

  1. How-to-Deploy-your-Project(-Front-end)-From-VSC-locally?-(Newbie/Noob version)
  2. Instance ip.address:9010 operation process flow


Impacts

Character "?"

  1. Wiki Page structures screwed up.
  2. Unable to open the page "Noob version)", as / is valid and act as sub page of a parent page of text before "/"
  3. Failed to clone to windows environment as not allow "?" as filename.

Character ":"

  1. Wiki Page showing correctly.
  2. Wiki Page has no issue to be edited.
  3. But failed to clone to windows environment as not allow ":" as filename.

Clone script

git clone ssh://git@test.gitlab.yourcompany.local:2202/com/yourcompany/general.wiki.git

 - Replaced ":" character with "-" at WIKI Page Title

Special characters been identified causing cloning wiki issue:

  1. -
  2. ?





















2022-08-22

Corrupted GitLab 15.2 was back to online.

 




GitLab 15.2 was corrupted due to whatever reasons...


finally service back to running by:

sudo gitlab-ctl reconfigure
















2021-05-06

Download m3u8 with .ts files as mp4

 

Googled: download m3u8

https://www.google.com/search?q=download+m3u8&oq=download+m3u8&aqs=chrome..69i64j0l9.5315j0j7&sourceid=chrome&ie=UTF-8




https://chrome.google.com/webstore/detail/m3u8-online-video-extract/fcpefnjbneopahdnhdhahbhoccipdmdm






Convert ts files to mp4

ffmpeg -i ts_file_path -acodec copy -vcodec copy -f mp4 path+name.mp4

Projects from:

https://github.com/Momo707577045/m3u8-downloader

Thank you for sharing that







2020-12-11

ToBeContinue: Eclipse Git - Create as bare repository

 







Differents:



Bare Repository won't be available in the list of Repository during Share Project below:

Public: Eclipse Git - Create as bare repository






Create as bare repository

Created Folder structure:




















2020-11-06

local untracked file is gone after git pull

 Git version:

PortableGit-2.28.0-64-bit.7z


Case:

Did a Git Stash in Visual Studio Code, before commit i did git  pull, then my changes and new files all gone.


Read article saying that git stash won't "add" new files(untracked)

https://www.cnblogs.com/zndxall/archive/2018/09/04/9586088.html

But luckily still able get back all files(changes + new/untracked files) by git stash pop.














2019-09-04

Eclipse Git Push, refs/heads/master & refs/remotes/origin/master ?



Push Ref Specifications





Reference URL:
Is “refs/heads/master” same as “refs/remotes/origin/master” in Git?
https://stackoverflow.com/questions/7541040/is-refs-heads-master-same-as-refs-remotes-origin-master-in-git



They are two different symbolic names that can point to different things. refs/heads/master is a branch in your working copy named master. Frequently that is a tracking branch of refs/remotes/origin/master because origin is the default name for the remote created by git clone and its primary branch is usually also named master.
You can see the difference between them with git rev-list refs/heads/master..refs/remotes/origin/master which will be empty if they are the same and will otherwise list the commits between them.






Found this configuration in eclipse:








Not sure what the different of:
refs/heads/master - refs/remotes/origin/master
vs
+refs/heads/*:refs/remotes/origin/*

is * = wildcard?




https://stackoverflow.com/a/7546794/676104

The key difference to understand is that the branches under refs/heads/ are branches that, when you have one checked out, you can advance by creating new commits. Those under refs/remotes/, however, are so-called "remote-tracking branches" - these refs just point to the commit that a remote repository was at the last time you did a git fetch <name-of-remote>, or a successful git push to the corresponding branch in that remote repository. (I wrote a blog post that talks about this difference at some length here.)


https://longair.net/blog/2009/04/16/git-fetch-and-merge/

GIT: FETCH AND MERGE, DON’T PULL







Google Referrals