Use these steps to push this folder to the repository https://github.com/mklayek/RFDFWIM.
If Git is not installed: https://git-scm.com/downloads
Example (PowerShell):
cd "e:\#[CWNU_backup\RFDFWIM"Or use Git Bash or Command Prompt and cd to the same path.
git initReplace mklayek or RFDFWIM if your repo URL is different:
git remote add origin https://github.com/mklayek/RFDFWIM.gitIf origin already exists and points to the wrong URL:
git remote set-url origin https://github.com/mklayek/RFDFWIM.git- Included: All
.mfiles,seismic.map,input/*.dat,README.md,MANUAL.md,COMMANDS.md,INSTALLATION.md,.gitignore,docs/, etc. - Ignored (by
.gitignore):*.mat,output/,outputmyINV/,obs/,*.tiff, and other generated/large files.
So the repo stays small and code-focused. To also track generated data or figures, remove or comment out the corresponding lines in .gitignore.
git add .
git status
git commit -m "Initial commit: RFDFWIM MATLAB code, docs, and input"
git branch -M main
git push -u origin mainIf the repo already has a default branch (e.g. main), use that name. If GitHub uses master, run:
git branch -M master
git push -u origin master-
HTTPS: Git will ask for username and password. For GitHub, use a Personal Access Token instead of your account password:
GitHub: Creating a personal access token -
SSH: If you use SSH keys, set the remote to SSH and push:
git remote set-url origin git@github.com:mklayek/RFDFWIM.git git push -u origin main
After changing code or docs:
git add .
git status
git commit -m "Short description of changes"
git pushIf https://github.com/mklayek/RFDFWIM already has commits (e.g. a README created on the web), do a pull first:
git pull origin main --allow-unrelated-historiesResolve any conflicts, then:
git push -u origin mainUse master instead of main if that is the default branch.