User contributions for Admin
Jump to navigation
Jump to search
9 February 2024
- 01:4201:42, 9 February 2024 diff hist −6 Bash git-prompt No edit summary
- 01:4201:42, 9 February 2024 diff hist +410 N Bash git-prompt Created page with " ---automatically change the prompt when you're in a git directory--- <pre> ---[~/.bashrc]--- # uncomment these 5 lines to automatically show a different PS1 prompt when you enter a git directory GIT_PS1_SHOWDIRTYSTATE=1 GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWCOLORHINTS=true PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "' source /usr/lib/git-core/git-sh-prompt ---[]--- </pre>"
- 01:4001:40, 9 February 2024 diff hist +21 Git No edit summary
- 01:3601:36, 9 February 2024 diff hist +669 N Setting aliases Created page with " <pre> creating an alias will probably save you a lot of time typing in long commands to create an alias either create one from the commandline or edit ~/.gitconfig on the commandline: git config --global alias.hist 'log --graph --all --oneline' NOTE: omitting '--global' will only set this alias for this repository editing the config file: --- [alias] hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --all --oneline --date=short --- or..." current
- 01:3601:36, 9 February 2024 diff hist +21 Git No edit summary
- 01:3501:35, 9 February 2024 diff hist +1 Creating a git repository from an existing project No edit summary current
- 01:3501:35, 9 February 2024 diff hist −58 Creating a git repository from an existing project No edit summary
- 01:3401:34, 9 February 2024 diff hist +1,023 N Creating a git repository from an existing project Created page with " ===creating a git repository from an existing project=== Assuming a project in ~/myproject containing all sorts of files and directories <pre> In the below example we use a local project called 'myproject' and upload it to the git server. - if the existing local 'myproject' isn't initialised with git yet, then do so now: $ git init $ git add . $ git commit -m "initial commit" - clone 'myproject' from your local project into a new local di..."
- 01:3401:34, 9 February 2024 diff hist −968 Git Replaced content with " Creating a git repository from an existing project" Tag: Replaced
- 01:3401:34, 9 February 2024 diff hist +884 Git No edit summary
- 01:2101:21, 9 February 2024 diff hist +139 N Git Created page with " ===creating a git repository from an existing project=== Assuming a project in ~/myproject containing all sorts of files and directories"
- 01:2001:20, 9 February 2024 diff hist +9 Linux info No edit summary
- 01:1801:18, 9 February 2024 diff hist +99 N Vnc Created page with "enabling a VNC server for remote desktop access using x11vnc <pre> apt-get install x11vnc </pre>" current
- 01:1801:18, 9 February 2024 diff hist +9 Linux info No edit summary
- 01:1701:17, 9 February 2024 diff hist +1 Systemd-tips →Enable /etc/rc.local= current
- 01:1701:17, 9 February 2024 diff hist +2 Systemd-tips →Enable /etc/rc.local=
- 01:1701:17, 9 February 2024 diff hist +449 N Systemd-tips Created page with " ==Enable /etc/rc.local=== <pre> --[example /etc.rc.local]-- #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 --[end]-- systemctl daemon-reload systemctl start rc-local </pre>"
- 01:1501:15, 9 February 2024 diff hist +18 Linux info No edit summary
- 01:1501:15, 9 February 2024 diff hist +576 N Vim-config Created page with " useful entries in ~/.vimrc <pre> " --- disable syntax highlighting syntax off " --- open file at last edit position autocmd BufReadPost * \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ | exe "normal! g`\"" \ | endif " --- disable bell and screen flickering on escape --- set visualbell set t_vb= " -- allow mouse copy and paste -- set mouse=r " --- set tabstops to 4 spaces and set shiftwidth (ident amount) as..." current
- 01:1401:14, 9 February 2024 diff hist +16 Linux info No edit summary