gst
- git status
gco
- git checkout
gcb
- git checkout -b
gcm
- git commit
gca
- git commit --amend
gaa
- git add .
gap
- git add -p
gcp
- git cherry-pick
- Toggle
Viewed
button on GitHub'sFiles Changed
section
document.querySelectorAll('.js-reviewed-toggle').forEach((item) => item.click());
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import re | |
from googletrans import Translator | |
from bs4 import BeautifulSoup | |
# Function to translate text while preserving placeholders | |
def translate_text_with_placeholders(text, target_language): | |
# Define placeholder pattern | |
placeholder_pattern = re.compile(r'\$([^\$]+)\$', flags=re.IGNORECASE) | |
- The
main
branch should be kept stable for potential releases. - Create a
develop
branch for ongoing development and set it as the default branch. - For adding a feature, create a branch starting with
feat/
(e.g.,feat/feature-name
) from thedevelop
branch. - For fixing an issue, create a branch starting with
fix/
(e.g.,fix/feature-name
,fix/issue-name
) from thedevelop
branch. - For refactoring code, create a branch starting with
ref/
(e.g.,ref/feature-name
,ref/v1.0.0
) from thedevelop
branch. - For release, create a branch starting with
release/
(e.g.,release/v1.0.0
) from thedevelop
branch. - Once the release branch is ready, merge it to the
main
branch.